django- how to check validity of single input field inside multi input form -


i have form multiple input fields, want use 1 input form. proper way check field validity , cleaned data 1 field?

thanks !

the proper way add it's own form ;)

but... can 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) 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -