Browse Source

Order sites by domain rather than by name

pull/1/head
Danielle McLean 5 years ago
parent
commit
b053ba3c88
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
  1. 19
      users/migrations/0008_auto_20171031_1357.py
  2. 2
      users/models.py

19
users/migrations/0008_auto_20171031_1357.py

@ -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',)},
),
]

2
users/models.py

@ -25,7 +25,7 @@ class Site(models.Model):
return self.name
class Meta:
ordering = ('name',)
ordering = ('domain',)
class User(ModelMeta, AbstractUser):

Loading…
Cancel
Save