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_and_m2o | |
parent | dd8ed64113947ed066b83e443053e389e8f77ebc (diff) | |
download | django-e817ae74da0e515db31907ebcb2d00bcf7c3f5bc.tar.gz |
Followed style guide for model attribute ordering.
Diffstat (limited to 'tests/m2m_and_m2o')
-rw-r--r-- | tests/m2m_and_m2o/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/m2m_and_m2o/models.py b/tests/m2m_and_m2o/models.py index 9e3cf7c1da..151f9987f8 100644 --- a/tests/m2m_and_m2o/models.py +++ b/tests/m2m_and_m2o/models.py @@ -15,12 +15,12 @@ class Issue(models.Model): cc = models.ManyToManyField(User, blank=True, related_name='test_issue_cc') client = models.ForeignKey(User, models.CASCADE, related_name='test_issue_client') - def __str__(self): - return str(self.num) - class Meta: ordering = ('num',) + def __str__(self): + return str(self.num) + class StringReferenceModel(models.Model): others = models.ManyToManyField('StringReferenceModel') |