Ticket #9171: 9171-inlineformset_factory-r9082.diff
File 9171-inlineformset_factory-r9082.diff, 876 bytes (added by , 16 years ago) |
---|
-
django/forms/models.py
528 528 if fk.unique: 529 529 max_num = 1 530 530 if exclude is not None: 531 exclude = list(exclude) 531 532 exclude.append(fk.name) 532 533 else: 533 534 exclude = [fk.name] -
tests/regressiontests/inline_formsets/models.py
51 51 Exception: <class 'regressiontests.inline_formsets.models.Child'> has no field named 'test' 52 52 53 53 54 # Regression test for #9171. 55 >>> ifs = inlineformset_factory(Parent, Child, exclude=('school',), fk_name='mother') 54 56 """ 55 57 }