Commit 168f03cf authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '205-thabloids-are-unsorted-contain-duplicates' into 'master'

Add descending ordering to thabloids

See merge request !336
parents 0f324b06 50229cb7
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-29 13:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('thabloid', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='thabloid',
options={'ordering': ('-year', '-issue')},
),
]
......@@ -26,6 +26,7 @@ class Thabloid(models.Model):
class Meta:
unique_together = ('year', 'issue',)
ordering = ('-year', '-issue')
def __str__(self):
return 'Thabloid {}-{}, #{}'.format(self.year, self.year+1, self.issue)
......
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