Browse files

Removed a conditional that slipped by that makes inline model formset…

…s fail validation when re-submitted.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7c7ad04 commit 2487e3ae37864eb41c532c46ef7e3189ec910ca2 @brosner brosner committed Sep 1, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/forms/
@@ -345,7 +345,7 @@ def as_widget(self, widget=None, attrs=None, only_initial=False):
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.field.initial)
if callable(data):
data = data()

0 comments on commit 2487e3a

Please sign in to comment.