Skip to content

Commit c0f7ce0

Browse files
committed
order by created
1 parent 35f42df commit c0f7ce0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webhooks/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,8 @@ class Log(models.Model):
106106
payload = models.TextField()
107107
created = models.DateTimeField("Date Created", auto_now_add=True)
108108

109+
class Meta:
110+
ordering = ['created']
111+
109112
def __unicode__(self):
110113
return "Log of %s - %s (%s)" % (self.webhook.get_action_display(), self.webhook.content_type, self.webhook.content_object)

0 commit comments

Comments
 (0)