feat: alphabetically order most models by default

#207
This commit is contained in:
Herculino Trotta
2025-03-09 18:55:29 -03:00
parent 187b3174d2
commit 73e8fdbf04
7 changed files with 70 additions and 1 deletions
+2
View File
@@ -19,6 +19,7 @@ class AccountGroup(SharedObject):
verbose_name_plural = _("Account Groups")
db_table = "account_groups"
unique_together = (("owner", "name"),)
ordering = ["name", "id"]
def __str__(self):
return self.name
@@ -69,6 +70,7 @@ class Account(SharedObject):
verbose_name = _("Account")
verbose_name_plural = _("Accounts")
unique_together = (("owner", "name"),)
ordering = ["name", "id"]
def __str__(self):
return self.name