diff options
Diffstat (limited to 'tests/inline_formsets/tests.py')
| -rw-r--r-- | tests/inline_formsets/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/inline_formsets/tests.py b/tests/inline_formsets/tests.py index 5258907919..707115878f 100644 --- a/tests/inline_formsets/tests.py +++ b/tests/inline_formsets/tests.py @@ -162,7 +162,7 @@ class InlineFormsetFactoryTest(TestCase): def test_zero_primary_key(self): # Regression test for #21472 poet = Poet.objects.create(id=0, name='test') - poem = poet.poem_set.create(name='test poem') + poet.poem_set.create(name='test poem') PoemFormSet = inlineformset_factory(Poet, Poem, fields="__all__", extra=0) formset = PoemFormSet(None, instance=poet) self.assertEqual(len(formset.forms), 1) |
