diff --git a/preprints/migrations/0009_auto_20181123_1000.py b/preprints/migrations/0009_auto_20181123_1000.py new file mode 100644 index 0000000000000000000000000000000000000000..8ef8494faec9d72742f6d402143c113a3998ffd5 --- /dev/null +++ b/preprints/migrations/0009_auto_20181123_1000.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2018-11-23 09:00 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('preprints', '0008_auto_20180913_2112'), + ] + + operations = [ + migrations.AlterModelOptions( + name='preprint', + options={'ordering': ['-identifier_w_vn_nr']}, + ), + ] diff --git a/preprints/models.py b/preprints/models.py index 41e89808518abb67c5cc6adce6963b5677c18015..443f8ddc584cbeab11181939437e09eb69258a7c 100644 --- a/preprints/models.py +++ b/preprints/models.py @@ -32,6 +32,10 @@ class Preprint(models.Model): modified = models.DateTimeField(auto_now=True) created = models.DateTimeField(auto_now_add=True) + class Meta: + ordering = ['-identifier_w_vn_nr'] + + def __str__(self): return 'Preprint {}'.format(self.identifier_w_vn_nr)