Switch back to ordering sites by name, since sites like Pocket have weird domain names and therefore sort weirdly if you go by domain
This commit is contained in:
parent
2231c3644c
commit
97f52a713b
2 changed files with 20 additions and 1 deletions
19
users/migrations/0010_auto_20171206_2211.py
Normal file
19
users/migrations/0010_auto_20171206_2211.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.7 on 2017-12-06 11:11
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('users', '0009_user_xmpp'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='site',
|
||||||
|
options={'ordering': ('name',)},
|
||||||
|
),
|
||||||
|
]
|
|
@ -27,7 +27,7 @@ class Site(models.Model):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('domain',)
|
ordering = ('name',)
|
||||||
|
|
||||||
|
|
||||||
class User(ModelMeta, AbstractUser):
|
class User(ModelMeta, AbstractUser):
|
||||||
|
|
Loading…
Reference in a new issue