diff --git a/src/gameservers/migrations/0014_auto_20150315_1430.py b/src/gameservers/migrations/0014_auto_20150315_1430.py new file mode 100644 index 0000000..5b2cbc1 --- /dev/null +++ b/src/gameservers/migrations/0014_auto_20150315_1430.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('gameservers', '0013_auto_20150310_1944'), + ] + + operations = [ + migrations.AlterModelOptions( + name='server', + options={'ordering': ['-players_current', '-last_updated', 'title']}, + ), + ] diff --git a/src/gameservers/models.py b/src/gameservers/models.py index 7d734b6..97426ca 100644 --- a/src/gameservers/models.py +++ b/src/gameservers/models.py @@ -34,7 +34,7 @@ class Server(models.Model): ) class Meta: - ordering = ['-players_current', 'title'] + ordering = ['-players_current', '-last_updated', 'title'] def __str__(self): return self.title