Author: brosner
Date: 2008-09-01 16:33:15 -0500 (Mon, 01 Sep 2008)
New Revision: 8817
Modified:
django/trunk/django/forms/forms.py
Log:
Removed a conditional that slipped by that makes inline model formsets fail
validation when re-submitted.
Modified: django/trunk/django/forms/forms.py
===================================================================
--- django/trunk/django/forms/forms.py 2008-09-01 21:28:32 UTC (rev 8816)
+++ django/trunk/django/forms/forms.py 2008-09-01 21:33:15 UTC (rev 8817)
@@ -345,7 +345,7 @@
auto_id = self.auto_id
if auto_id and 'id' not in attrs and 'id' not in widget.attrs:
attrs['id'] = auto_id
- if not self.form.is_bound or only_initial:
+ if not self.form.is_bound:
data = self.form.initial.get(self.name, self.field.initial)
if callable(data):
data = data()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---