mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Followed style guide for model attribute ordering.
This commit is contained in:
@@ -5,9 +5,9 @@ class Article(models.Model):
|
||||
headline = models.CharField(max_length=100, default='Default headline')
|
||||
pub_date = models.DateTimeField()
|
||||
|
||||
def __str__(self):
|
||||
return self.headline
|
||||
|
||||
class Meta:
|
||||
app_label = 'fixtures_model_package'
|
||||
ordering = ('-pub_date', 'headline')
|
||||
|
||||
def __str__(self):
|
||||
return self.headline
|
||||
|
||||
Reference in New Issue
Block a user