From e817ae74da0e515db31907ebcb2d00bcf7c3f5bc Mon Sep 17 00:00:00 2001 From: Matt Wiens Date: Thu, 27 Dec 2018 16:34:14 -0800 Subject: Followed style guide for model attribute ordering. --- tests/null_fk_ordering/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/null_fk_ordering') 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): -- cgit v1.3