diff --git a/apps/content/migrations/0003_auto_20180205_1246.py b/apps/content/migrations/0003_auto_20180205_1246.py new file mode 100644 index 00000000..978f00b1 --- /dev/null +++ b/apps/content/migrations/0003_auto_20180205_1246.py @@ -0,0 +1,17 @@ +# Generated by Django 2.0.2 on 2018-02-05 12:46 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('content', '0002_auto_20180205_1212'), + ] + + operations = [ + migrations.AlterModelOptions( + name='content', + options={'ordering': ('-created_at',), 'verbose_name': 'Контент', 'verbose_name_plural': 'Контент'}, + ), + ] diff --git a/apps/content/models.py b/apps/content/models.py index 4f02e846..33a32f6f 100644 --- a/apps/content/models.py +++ b/apps/content/models.py @@ -28,6 +28,7 @@ class Content(PolymorphicModel): class Meta: verbose_name = 'Контент' verbose_name_plural = 'Контент' + ordering = ('-created_at',) class Image(Content):