Sort the servers some more.

This commit is contained in:
A. Svensson 2015-03-15 15:31:45 +01:00
parent ad3fa222ba
commit 1b1d9f876f
2 changed files with 19 additions and 1 deletions

View File

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

View File

@ -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