diff --git a/production/migrations/0008_auto_20170623_0833.py b/production/migrations/0008_auto_20170623_0833.py new file mode 100644 index 0000000000000000000000000000000000000000..0f539586ada2418a86d38c75cf419f90a5c55f92 --- /dev/null +++ b/production/migrations/0008_auto_20170623_0833.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.3 on 2017-06-23 06:33 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('production', '0007_auto_20170610_1202'), + ] + + operations = [ + migrations.AlterModelOptions( + name='productionevent', + options={'ordering': ['noted_on']}, + ), + ] diff --git a/production/models.py b/production/models.py index 27e8c6a15785bcbae6c3d711889e7117f97b08e7..6e11ce0e181c9a7abce5f3f592a1593c0cfbb262 100644 --- a/production/models.py +++ b/production/models.py @@ -44,6 +44,9 @@ class ProductionEvent(models.Model): objects = ProductionEventManager() + class Meta: + ordering = ['noted_on'] + def __str__(self): return '%s: %s' % (str(self.stream.submission), self.get_event_display())