From 1bb0ac8c756740656466ab3fe7b462d61dc9ed0f Mon Sep 17 00:00:00 2001 From: Dipen Patel Date: Tue, 6 Jun 2017 09:06:51 +0530 Subject: [PATCH] Revert "Default ordering changed" This reverts commit ca685d5879eeebc42eff66633b2892765db02123. --- .../migrations/0031_auto_20170411_1719.py | 19 ------------------- djangocms_blog/models.py | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 djangocms_blog/migrations/0031_auto_20170411_1719.py diff --git a/djangocms_blog/migrations/0031_auto_20170411_1719.py b/djangocms_blog/migrations/0031_auto_20170411_1719.py deleted file mode 100644 index 958e889..0000000 --- a/djangocms_blog/migrations/0031_auto_20170411_1719.py +++ /dev/null @@ -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'}, - ), - ] diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index fe3c6c5..44fd329 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -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):