SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 482f70b6 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add ordering Meta to ProductionEvent

parent bd959b3c
No related branches found
No related tags found
No related merge requests found
# -*- 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']},
),
]
...@@ -44,6 +44,9 @@ class ProductionEvent(models.Model): ...@@ -44,6 +44,9 @@ class ProductionEvent(models.Model):
objects = ProductionEventManager() objects = ProductionEventManager()
class Meta:
ordering = ['noted_on']
def __str__(self): def __str__(self):
return '%s: %s' % (str(self.stream.submission), self.get_event_display()) return '%s: %s' % (str(self.stream.submission), self.get_event_display())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment