From 97f52a713b578f047b0584927a7e57d051c752fc Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 6 Dec 2017 22:13:54 +1100 Subject: [PATCH] Switch back to ordering sites by name, since sites like Pocket have weird domain names and therefore sort weirdly if you go by domain --- users/migrations/0010_auto_20171206_2211.py | 19 +++++++++++++++++++ users/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 users/migrations/0010_auto_20171206_2211.py diff --git a/users/migrations/0010_auto_20171206_2211.py b/users/migrations/0010_auto_20171206_2211.py new file mode 100644 index 0000000..04a0819 --- /dev/null +++ b/users/migrations/0010_auto_20171206_2211.py @@ -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',)}, + ), + ] diff --git a/users/models.py b/users/models.py index 7e2d876..e49d15d 100644 --- a/users/models.py +++ b/users/models.py @@ -27,7 +27,7 @@ class Site(models.Model): return self.name class Meta: - ordering = ('domain',) + ordering = ('name',) class User(ModelMeta, AbstractUser):