Top "Django-forms" questions

Specific questions related to forms with the Django web framework

Django TextField max_length validation for ModelForm

Django does not respect the max_length attribute of TextField model field while validating a ModelForm. So I define a …

django django-models django-forms django-validation
get current user in Django Form

Possible Duplicate: get request data in Django form There's part of my Guest Model: class Guest(models.Model): event = models.…

django-forms django-users
How to change the file name of an uploaded file in Django?

Is it possible to change the file name of an uploaded file in django? I searched, but couldn't find any …

python django django-models django-forms django-views
Saving Many To Many data via a modelform in Django

I have a problem saving many to many fields from a form. Here are my models: class TextIssue(models.Model): …

django django-forms django-orm
Custom validation in Django admin

I have a very simple Django app in order to record the lectures given my colleagues.Since it is quite …

python django django-forms django-admin django-validation
Django multi-select widget?

The Django admin site makes use of a really cool widget: How can I make use of this widget in …

django forms django-forms
Sending emails with attachment in django

I'm trying to send email with some images attached in django. Code used is this snippet : http://www.djangosnippets.org/…

django django-forms attachment
How to set initial values for a ModelForm when instance is also given

It seems like if a ModelForm is given an instance, it ignores any values you provide for initial and instead …

django django-forms django-1.4
django - update model with FormView and ModelForm

I can't figure out how to use a ModelForm in a FormView so that it updates an already existing instance?? …

django django-views django-forms
Django forms, inheritance and order of form fields

I'm using Django forms in my website and would like to control the order of the fields. Here's how I …

python django django-forms