SciPost Code Repository

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

Add ordering to scipost:Remark

parent 8ff12a44
No related branches found
No related tags found
No related merge requests found
# -*- 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']},
),
]
...@@ -178,6 +178,7 @@ class Remark(models.Model): ...@@ -178,6 +178,7 @@ class Remark(models.Model):
class Meta: class Meta:
default_related_name = 'remarks' default_related_name = 'remarks'
ordering = ['date']
def __str__(self): def __str__(self):
return (self.contributor.user.first_name + ' ' return (self.contributor.user.first_name + ' '
......
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