add order by rank

This commit is contained in:
baoliang 2021-05-12 15:57:56 +08:00
parent dc87eaef02
commit fa0b740e9d
2 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class Organization(models.Model):
rank = models.IntegerField('排名', default=1)
class Meta:
ordering = ["name"]
ordering = ["-rank"]
def __str__(self):
return self.name