Answers for "Access field values of form django"

0

Access field values of form django

>>> data = {'subject': 'hello',
...         'message': 'Hi there',
...         'sender': '[email protected]',
...         'cc_myself': True}
>>> f = ContactForm(data)
>>> f.is_valid()
True
>>> f.cleaned_data
{'cc_myself': True, 'message': 'Hi there', 'sender': '[email protected]', 'subject': 'hello'}
Posted by: Guest on September-18-2021

Code answers related to "Access field values of form django"

Python Answers by Framework

Browse Popular Code Answers by Language