Sort the servers some more.
This commit is contained in:
parent
ad3fa222ba
commit
1b1d9f876f
18
src/gameservers/migrations/0014_auto_20150315_1430.py
Normal file
18
src/gameservers/migrations/0014_auto_20150315_1430.py
Normal 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']},
|
||||||
|
),
|
||||||
|
]
|
||||||
@ -34,7 +34,7 @@ class Server(models.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['-players_current', 'title']
|
ordering = ['-players_current', '-last_updated', 'title']
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user