LIL-162. Add ordering for Content model

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 670a1f485e
commit 815089685e
  1. 17
      apps/content/migrations/0003_auto_20180205_1246.py
  2. 1
      apps/content/models.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': 'Контент'},
),
]

@ -28,6 +28,7 @@ class Content(PolymorphicModel):
class Meta:
verbose_name = 'Контент'
verbose_name_plural = 'Контент'
ordering = ('-created_at',)
class Image(Content):

Loading…
Cancel
Save