mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Fixed some flake8 issues
This commit is contained in:
parent
9f8810ac51
commit
b9d908da54
3 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue