- Language: en
46 results for forms in the development version
-
JavaScript customizations in the admin
- … form events You may want to execute some JavaScript when an inline form is added …
-
The contenttypes framework
- … forms The django.contrib.contenttypes.forms module provides: BaseGenericInlineFormSet A formset factory, generic_inlineformset_factory() , for use with …
-
The Django admin site
- … form, for example: from django import forms class MyForm ( forms . ModelForm ): pass class MyModelAdmin ( admin …
-
Widgets
- … forms class CommentForm ( forms . Form ): name = forms . CharField () url = forms . URLField () comment = forms . CharField ( widget …
-
Editing mixins
- … form_class () Retrieve the form class to instantiate. By default form_class . get_form ( form …
-
Generic editing views
- … forms class ContactForm ( forms . Form ): name = forms . CharField () message = forms . CharField ( widget = forms . Textarea ) def send …
-
Model field reference
- … form field it should be represented by: formfield ( form_class = None , choices_form_class = None …
-
Request and response objects
- … forms: binary images, XML payload etc. For processing conventional form data, use HttpRequest.POST . You can also …
-
Validators
- … forms: from django import forms class MyForm ( forms . Form ): even_field = forms . IntegerField ( validators = [ validate …
-
Applications
- … form field choices: class LocationForm ( forms . Form ): country = forms . ChoiceField ( choices = [ c . name for c in Country …