Skip to content

Commit

Permalink
Set default ordering of PCNs (#5078)
Browse files Browse the repository at this point in the history
This is so that on a page such as https://openprescribing.net/sicbl/15E/  the PCN list is shown in alphabetical order.
  • Loading branch information
dracos authored Dec 2, 2024
1 parent f03576a commit 29b9478
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openprescribing/frontend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class PCN(models.Model):

HUMAN_NAME = "PCN"

class Meta:
ordering = ["name"]

def __str__(self):
return self.name

Expand Down

0 comments on commit 29b9478

Please sign in to comment.