Revert "Default ordering changed"

This reverts commit ca685d5879.
This commit is contained in:
Dipen Patel 2017-06-06 09:06:51 +05:30
parent 8d446ec0c0
commit 1bb0ac8c75
2 changed files with 1 additions and 20 deletions

View file

@ -1,19 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-11 11:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangocms_blog', '0030_auto_20170411_1456'),
]
operations = [
migrations.AlterModelOptions(
name='post',
options={'get_latest_by': 'date_published', 'ordering': ('-post_order', '-date_published', '-date_created'), 'verbose_name': 'blog article', 'verbose_name_plural': 'blog articles'},
),
]

View file

@ -229,7 +229,7 @@ class Post(SortableMixin, KnockerModel, ModelMeta, TranslatableModel):
class Meta:
verbose_name = _('blog article')
verbose_name_plural = _('blog articles')
ordering = ('-post_order', '-date_published', '-date_created')
ordering = ('post_order', '-date_published', '-date_created')
get_latest_by = 'date_published'
def __str__(self):