aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-09-20 06:35:38 +1000
committerGravatar scragly <[email protected]>2020-09-20 06:35:38 +1000
commit9344d8ac63df05d67a79fbeacc7a8c31acf86853 (patch)
tree456edc43581fa8bb0be31ab9b35dc3b595abf9db /pydis_site/apps/api/models
parentChange Infraction admin to use fieldsets for better grouping of info. (diff)
Change documentation link model to order by package.
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r--pydis_site/apps/api/models/bot/documentation_link.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/documentation_link.py b/pydis_site/apps/api/models/bot/documentation_link.py
index 5a46460b..2a0ce751 100644
--- a/pydis_site/apps/api/models/bot/documentation_link.py
+++ b/pydis_site/apps/api/models/bot/documentation_link.py
@@ -24,3 +24,8 @@ class DocumentationLink(ModelReprMixin, models.Model):
def __str__(self):
"""Returns the package and URL for the current documentation link, for display purposes."""
return f"{self.package} - {self.base_url}"
+
+ class Meta:
+ """Defines the meta options for the documentation link model."""
+
+ ordering = ['package']