Commit 22aae642 authored by Jamesie Pic's avatar Jamesie Pic

Order mandates by end date

parent 0546e7e0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('representatives', '0008_constituency_country'),
]
operations = [
migrations.AlterModelOptions(
name='mandate',
options={'ordering': ('end_date',)},
),
]
......@@ -232,3 +232,6 @@ class Mandate(HashableModel, TimeStampedModel):
self.role) if self.role else u''),
constituency=self.constituency,
group=self.group)
class Meta:
ordering = ('-end_date',)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment