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
19
users/migrations/0008_auto_20171031_1357.py
Normal file
19
users/migrations/0008_auto_20171031_1357.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.6 on 2017-10-31 02:57
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0007_auto_20171031_1347'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='site',
|
||||
options={'ordering': ('domain',)},
|
||||
),
|
||||
]
|
|
@ -25,7 +25,7 @@ class Site(models.Model):
|
|||
return self.name
|
||||
|
||||
class Meta:
|
||||
ordering = ('name',)
|
||||
ordering = ('domain',)
|
||||
|
||||
|
||||
class User(ModelMeta, AbstractUser):
|
||||
|
|
Loading…
Reference in a new issue