Order sites by domain rather than by name
This commit is contained in:
parent
8a9f41759e
commit
b053ba3c88
2 changed files with 20 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class Site(models.Model):
|
|||
return self.name
|
||||
|
||||
class Meta:
|
||||
ordering = ('name',)
|
||||
ordering = ('domain',)
|
||||
|
||||
|
||||
class User(ModelMeta, AbstractUser):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue