summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-09-01 21:33:15 +0000
committerBrian Rosner <brosner@gmail.com>2008-09-01 21:33:15 +0000
commit2487e3ae37864eb41c532c46ef7e3189ec910ca2 (patch)
treecdbef39db23ce632738fea1668f1029c74e746e8
parent7c7ad041b358a9819b3bd9f93d4834df4a5b5d57 (diff)
Removed a conditional that slipped by that makes inline model formsets fail validation when re-submitted.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/forms/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py
index 2d4f4462d0..b81c95f8ad 100644
--- a/django/forms/forms.py
+++ b/django/forms/forms.py
@@ -345,7 +345,7 @@ class BoundField(StrAndUnicode):
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()