diff --git a/scipost/migrations/0021_auto_20190126_2120.py b/scipost/migrations/0021_auto_20190126_2120.py new file mode 100644 index 0000000000000000000000000000000000000000..e5b4c50c4bec4e5a7bf135b7a10cb69bea0bf83d --- /dev/null +++ b/scipost/migrations/0021_auto_20190126_2120.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2019-01-26 20:20 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('scipost', '0020_auto_20190126_2058'), + ] + + operations = [ + migrations.AlterModelOptions( + name='remark', + options={'ordering': ['date']}, + ), + ] diff --git a/scipost/models.py b/scipost/models.py index a007d12c8744b0e3db86ae94d123c311dba39723..43f42fb92362875476a8a24461a7761fba9e496b 100644 --- a/scipost/models.py +++ b/scipost/models.py @@ -178,6 +178,7 @@ class Remark(models.Model): class Meta: default_related_name = 'remarks' + ordering = ['date'] def __str__(self): return (self.contributor.user.first_name + ' '