From 433a72a7a898d2b5dbc7926ebfc16dd95f7ce6ee Mon Sep 17 00:00:00 2001 From: Dana Lambert Date: Wed, 17 Nov 2021 10:32:54 +1300 Subject: [PATCH] Add ordering to plant list --- backend/right_tree/api/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/right_tree/api/models.py b/backend/right_tree/api/models.py index c7e19ad..88df35d 100644 --- a/backend/right_tree/api/models.py +++ b/backend/right_tree/api/models.py @@ -160,3 +160,6 @@ class Plant(models.Model): def __str__(self): return self.name + + class Meta: + ordering = ['stage', 'name', 'commonname', 'synonym']