Hello,
How do i request field from different model and sent SMS to this field?
Please see below code.
field = "om_user_phone_test"
om_user_phone_test = request [field]
method_name = 'send_sms'
sendSMS = getattr (SMS, method_name)
sendSMS ([om_user_phone], "Hello you have a new request Pending, Please login to process the request.")
Error Code:
om_user_phone_test = request [field] NameError: name 'request' is not defined