Django

Code

Changeset 8817

Show
Ignore:
Timestamp:
09/01/08 16:33:15 (3 months ago)
Author:
brosner
Message:

Removed a conditional that slipped by that makes inline model formsets fail validation when re-submitted.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/forms/forms.py

    r8816 r8817  
    346346        if auto_id and 'id' not in attrs and 'id' not in widget.attrs: 
    347347            attrs['id'] = auto_id 
    348         if not self.form.is_bound or only_initial
     348        if not self.form.is_bound
    349349            data = self.form.initial.get(self.name, self.field.initial) 
    350350            if callable(data):