diff options
author | Matt Wiens <mwiens91@gmail.com> | 2018-12-27 16:34:14 -0800 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-12-27 19:34:14 -0500 |
commit | e817ae74da0e515db31907ebcb2d00bcf7c3f5bc (patch) | |
tree | 95a250a4d845b9c8f4f8416fc8962cfe1937951e /tests/m2m_through | |
parent | dd8ed64113947ed066b83e443053e389e8f77ebc (diff) | |
download | django-e817ae74da0e515db31907ebcb2d00bcf7c3f5bc.tar.gz |
Followed style guide for model attribute ordering.
Diffstat (limited to 'tests/m2m_through')
-rw-r--r-- | tests/m2m_through/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/m2m_through/models.py b/tests/m2m_through/models.py index 5f9fba27a7..a84608a530 100644 --- a/tests/m2m_through/models.py +++ b/tests/m2m_through/models.py @@ -55,13 +55,13 @@ class CustomMembership(models.Model): weird_fk = models.ForeignKey(Membership, models.SET_NULL, null=True) date_joined = models.DateTimeField(default=datetime.now) - def __str__(self): - return "%s is a member of %s" % (self.person.name, self.group.name) - class Meta: db_table = "test_table" ordering = ["date_joined"] + def __str__(self): + return "%s is a member of %s" % (self.person.name, self.group.name) + class TestNoDefaultsOrNulls(models.Model): person = models.ForeignKey(Person, models.CASCADE) |