Skip to Content
Menu
This question has been flagged

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

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 20
2055
1
Jun 21
2795
1
Mar 21
2517
0
Jan 21
1322
0
Jun 20
1943