Article model has MM field to Authors. Editing an Article 123 would
than be:

>>> f = ArticleForm( instance=Article.objects.get(id=123) )

But than:
>>> f.is_valid()
False

>>> f.data
{}

>>> f._errors
{}

>>> f.is_bound
False

Closer look at the form object "author" field:
>>> f.fields['author'].required
True

Why is Author field ignored when populating form with instance that
has valid Author entry?
Since Author field is required it is obvious that form does not
validate.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to