Skip to content

Commit

Permalink
order instances by name
Browse files Browse the repository at this point in the history
  • Loading branch information
gythaogg committed Dec 12, 2024
1 parent 5563429 commit 694d2ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ class Instance(
class Meta:
verbose_name = _("instance")
verbose_name_plural = _("Instances")
ordering = ["name", "pk"]

def __str__(self):
return f"{self.name} ({self.pk})"
Expand Down

0 comments on commit 694d2ae

Please sign in to comment.