add order by rank
This commit is contained in:
parent
dc87eaef02
commit
fa0b740e9d
|
@ -150,7 +150,7 @@ class Organization(models.Model):
|
||||||
rank = models.IntegerField('排名', default=1)
|
rank = models.IntegerField('排名', default=1)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ["name"]
|
ordering = ["-rank"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue