diff options
author | 2019-09-24 13:54:40 -0400 | |
---|---|---|
committer | 2019-09-24 13:54:40 -0400 | |
commit | 20b19de0d22e33476ac082ea048476f9f8c1a5ed (patch) | |
tree | f1541776183c3d3850693ad20d81fb530bed3a1d /pydis_site/apps/api/models/bot | |
parent | Apply suggestions from code review (diff) | |
parent | Swap out old discord shield for new one. (diff) |
Merge branch 'master' into update-linting
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r-- | pydis_site/apps/api/models/bot/infraction.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/infraction.py b/pydis_site/apps/api/models/bot/infraction.py index da91d6c2..dfb32a97 100644 --- a/pydis_site/apps/api/models/bot/infraction.py +++ b/pydis_site/apps/api/models/bot/infraction.py @@ -66,3 +66,8 @@ class Infraction(ModelReprMixin, models.Model): if self.hidden: s += " (hidden)" return s + + class Meta: + """Defines the meta options for the infraction model.""" + + ordering = ['-inserted_at'] |