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/null_fk_ordering | |
parent | dd8ed64113947ed066b83e443053e389e8f77ebc (diff) | |
download | django-e817ae74da0e515db31907ebcb2d00bcf7c3f5bc.tar.gz |
Followed style guide for model attribute ordering.
Diffstat (limited to 'tests/null_fk_ordering')
-rw-r--r-- | tests/null_fk_ordering/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/null_fk_ordering/models.py b/tests/null_fk_ordering/models.py index 368a47044e..82f3fed9f9 100644 --- a/tests/null_fk_ordering/models.py +++ b/tests/null_fk_ordering/models.py @@ -17,12 +17,12 @@ class Article(models.Model): title = models.CharField(max_length=150) author = models.ForeignKey(Author, models.SET_NULL, null=True) - def __str__(self): - return 'Article titled: %s' % self.title - class Meta: ordering = ['author__name'] + def __str__(self): + return 'Article titled: %s' % self.title + # These following 4 models represent a far more complex ordering case. class SystemInfo(models.Model): |