mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Adjusted code style of a few test data setup methods.
Thanks Mariusz for suggesting it.
This commit is contained in:
parent
84e7a9f4a7
commit
7f63b894c0
7 changed files with 18 additions and 36 deletions
|
@ -24,10 +24,7 @@ class MultiColumnFKTests(TestCase):
|
|||
cls.usa = Country.objects.create(name="United States of America")
|
||||
cls.soviet_union = Country.objects.create(name="Soviet Union")
|
||||
# Creating People
|
||||
cls.bob = Person()
|
||||
cls.bob.name = 'Bob'
|
||||
cls.bob.person_country = cls.usa
|
||||
cls.bob.save()
|
||||
cls.bob = Person.objects.create(name='Bob', person_country=cls.usa)
|
||||
cls.jim = Person.objects.create(name='Jim', person_country=cls.usa)
|
||||
cls.george = Person.objects.create(name='George', person_country=cls.usa)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue