Top "Modelform" questions

Questions related to the usage of a Django helper class ModelForm that let programmers create a Form class from a model.

Django ModelForm Imagefield Upload

I am pretty new to Django and I met a problem in handling image upload using ModelForm. My model is …

python django modelform
add extra field to ModelForm

I am adding an extra field to a Django ModelForm like that: class form(forms.ModelForm): extra_field = forms.CharField(…

django forms modelform
Hide a field from a django modelform

The django documentation suggests I can identify hidden / visible fields from within my template. I have two models, AddressInfo and …

django hidden-field modelform
How to get Interdependent dropdowns in django using Modelform and jquery?

I am new to django and jquery. I am working on a django-based app where I have 3 drop downs in …

jquery django drop-down-menu modelform
Django ModelMultipleChoiceField object has no attribute to_field_name

I'm trying to create a custom field for a ModelForm. I'm extending from ModelMultipleChoiceField and then overriding render and render_…

python django model modelform
Django ModelForm custom validation: How to access submitted field values

I have the below model form and want to add custom validation to a field called 'billable_work'. How do …

django validation modelform
How do I update an already existing row when using ModelForms?

I have a question on how to update an existing row in my database when one of the fields is …

python django modelform django-piston
Python/Django BooleanField model with RadioSelect form default to empty

I'm using a Django ModelForm where my model contains a BooleanField and the form widget associated with that BooleanField is …

django widget modelform radio-button
Django ModelForm overriding __init__

I'm trying to populate a Select list of a ModelForm, with the Django groups the current users belongs to. No …

python django django-forms modelform
Removing a fields from a dynamic ModelForm

In a ModelForm, i have to test user permissions to let them filling the right fields : It is defined like …

django dynamic field modelform