diff options
author | Dražen Odobašić <dodobas@candela-it.com> | 2015-09-11 19:33:12 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-09-12 11:40:50 -0400 |
commit | b1e33ceceda1e75ff68c7deed8f6659683a195d3 (patch) | |
tree | e4e446f69194f2dc3c9c7ee3ecf48290ea8d4d31 /tests/m2m_through | |
parent | 84b0a8d2aad042fb573df5055b6153770d0929ac (diff) | |
download | django-b1e33ceceda1e75ff68c7deed8f6659683a195d3.tar.gz |
Fixed #23395 -- Limited line lengths to 119 characters.
Diffstat (limited to 'tests/m2m_through')
-rw-r--r-- | tests/m2m_through/models.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/m2m_through/models.py b/tests/m2m_through/models.py index 32f93981a7..c25303f6f5 100644 --- a/tests/m2m_through/models.py +++ b/tests/m2m_through/models.py @@ -21,7 +21,11 @@ class Group(models.Model): name = models.CharField(max_length=128) members = models.ManyToManyField(Person, through='Membership') custom_members = models.ManyToManyField(Person, through='CustomMembership', related_name="custom") - nodefaultsnonulls = models.ManyToManyField(Person, through='TestNoDefaultsOrNulls', related_name="testnodefaultsnonulls") + nodefaultsnonulls = models.ManyToManyField( + Person, + through='TestNoDefaultsOrNulls', + related_name="testnodefaultsnonulls", + ) class Meta: ordering = ('name',) @@ -88,7 +92,11 @@ class Friendship(models.Model): @python_2_unicode_compatible class Event(models.Model): title = models.CharField(max_length=50) - invitees = models.ManyToManyField(Person, through='Invitation', through_fields=('event', 'invitee'), related_name='events_invited') + invitees = models.ManyToManyField( + Person, through='Invitation', + through_fields=('event', 'invitee'), + related_name='events_invited', + ) def __str__(self): return self.title @@ -104,7 +112,12 @@ class Invitation(models.Model): @python_2_unicode_compatible class Employee(models.Model): name = models.CharField(max_length=5) - subordinates = models.ManyToManyField('self', through="Relationship", through_fields=('source', 'target'), symmetrical=False) + subordinates = models.ManyToManyField( + 'self', + through="Relationship", + through_fields=('source', 'target'), + symmetrical=False, + ) class Meta: ordering = ('pk',) |