#12627: If all fields are readonly or editable=False, their ModelForm is always
valid and can raise exceptions
--------------------------------------+-------------------------------------
Reporter: KyleMac | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: SVN
Keywords: readonly_fields editable | Stage: Unreviewed
Has_patch: 0 |
--------------------------------------+-------------------------------------
If all fields are marked as readonly_fields on a ModelAdmin, or they're
editable=False in the actual model, then their ModelForm will always be
valid and it will try to save the data. If every field has a default or
allows null then a blank row will be added, if not then an IntegrityError
will be raised.
--
Ticket URL: <http://code.djangoproject.com/ticket/12627>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.