The correct way, probably, is to add it to your form;)
But ... you can do it like this:
form = SomeForm(request.POST)
field = form.fields['your_field']
data = field.widget.value_from_datadict(form.data, form.files, form.add_prefix('your_field'))
cleaned_data = field.clean(data)
Wolph source
share