summaryrefslogtreecommitdiff
path: root/tests/custom_managers
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-07 22:04:45 -0400
committerTim Graham <timograham@gmail.com>2016-04-08 10:12:33 -0400
commit92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch)
tree50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/custom_managers
parentdf8d8d4292684d6ffa7474f1e201aed486f02b53 (diff)
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/custom_managers')
-rw-r--r--tests/custom_managers/models.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/custom_managers/models.py b/tests/custom_managers/models.py
index 7fd50dc7f5..22ba66cb8f 100644
--- a/tests/custom_managers/models.py
+++ b/tests/custom_managers/models.py
@@ -116,7 +116,6 @@ class FunPerson(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
fun = models.BooleanField(default=True)
-
favorite_book = models.ForeignKey(
'Book',
models.SET_NULL,
@@ -141,12 +140,16 @@ class Book(models.Model):
published_objects = PublishedBookManager()
authors = models.ManyToManyField(Person, related_name='books')
fun_authors = models.ManyToManyField(FunPerson, related_name='books')
-
- favorite_things = GenericRelation(Person,
- content_type_field='favorite_thing_type', object_id_field='favorite_thing_id')
-
- fun_people_favorite_things = GenericRelation(FunPerson,
- content_type_field='favorite_thing_type', object_id_field='favorite_thing_id')
+ favorite_things = GenericRelation(
+ Person,
+ content_type_field='favorite_thing_type',
+ object_id_field='favorite_thing_id',
+ )
+ fun_people_favorite_things = GenericRelation(
+ FunPerson,
+ content_type_field='favorite_thing_type',
+ object_id_field='favorite_thing_id',
+ )
def __str__(self):
return self.title