From 2487e3ae37864eb41c532c46ef7e3189ec910ca2 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Mon, 1 Sep 2008 21:33:15 +0000 Subject: [PATCH] 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 --- django/forms/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()