Commit 2487e3ae authored by Brian Rosner's avatar Brian Rosner
Browse files

Removed a conditional that slipped by that makes inline model formsets fail...

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
parent 7c7ad041
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()