Here's my model form:

http://dpaste.com/153728/

The info isn't being saved as an empty value. When I view my db with
phpmyadmin, the correct values are in the ha_grade and hp_grade field
in the db, the drop-down list on the forms is just not displaying them
as being 'selected'.



On Feb 2, 10:09 am, Shawn Milochik <[email protected]> wrote:
> If you post the ModelForm we might be able to help more, but I'll venture a 
> guess.
>
> Do you have any templates where you use this ModelForm but do not show the 
> grades for editing? If so, and someone does an update, you're saving those 
> fields with empty values unless you explicitly exclude them in the ModelForm 
> meta information.
>
> Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to