From 482f70b61077d4ea60e55016998a5ad83334263b Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Fri, 23 Jun 2017 08:34:52 +0200
Subject: [PATCH] Add ordering Meta to ProductionEvent

---
 .../migrations/0008_auto_20170623_0833.py     | 19 +++++++++++++++++++
 production/models.py                          |  3 +++
 2 files changed, 22 insertions(+)
 create mode 100644 production/migrations/0008_auto_20170623_0833.py

diff --git a/production/migrations/0008_auto_20170623_0833.py b/production/migrations/0008_auto_20170623_0833.py
new file mode 100644
index 000000000..0f539586a
--- /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 27e8c6a15..6e11ce0e1 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())
 
-- 
GitLab