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:
Danielle McLean 2017-12-06 22:13:54 +11:00
parent 2231c3644c
commit 97f52a713b
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 20 additions and 1 deletions

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

View file

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