Add a missed "object" change.
This commit is contained in:
parent
31e51a7742
commit
7b981fcb52
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class ExternalArticle(models.Model):
|
|||
|
||||
date_created = models.DateField(auto_now_add=True)
|
||||
|
||||
class Meta:
|
||||
class Meta(object):
|
||||
ordering = ("-date_created",)
|
||||
get_latest_by = "date_created"
|
||||
|
||||
|
|
Loading…
Reference in a new issue