mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Add ordering to audit objects
This commit is contained in:
@@ -121,6 +121,9 @@ class Audit(models.Model):
|
||||
def __unicode__(self):
|
||||
return u"(%s) %s: %s" % (self.get_event_display(), self.user, self.text)
|
||||
|
||||
class Meta:
|
||||
get_latest_by = 'date'
|
||||
ordering = ['date']
|
||||
|
||||
class BlacklistSource(models.Model):
|
||||
""" Blacklist Source """
|
||||
|
||||
Reference in New Issue
Block a user