From 320dfd1a59f06148ea8cab988e4ccf80886e0526 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 24 Mar 2021 08:39:37 -0700 Subject: [PATCH] Python formatting --- bookwyrm/migrations/0058_auto_20210324_1536.py | 6 +++--- bookwyrm/models/status.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bookwyrm/migrations/0058_auto_20210324_1536.py b/bookwyrm/migrations/0058_auto_20210324_1536.py index d69dbab08..0fa8c90b6 100644 --- a/bookwyrm/migrations/0058_auto_20210324_1536.py +++ b/bookwyrm/migrations/0058_auto_20210324_1536.py @@ -6,12 +6,12 @@ from django.db import migrations class Migration(migrations.Migration): dependencies = [ - ('bookwyrm', '0057_user_discoverable'), + ("bookwyrm", "0057_user_discoverable"), ] operations = [ migrations.AlterModelOptions( - name='status', - options={'ordering': ('-published_date',)}, + name="status", + options={"ordering": ("-published_date",)}, ), ] diff --git a/bookwyrm/models/status.py b/bookwyrm/models/status.py index e90c2dec0..0ddcfd173 100644 --- a/bookwyrm/models/status.py +++ b/bookwyrm/models/status.py @@ -60,6 +60,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel): class Meta: """ default sorting """ + ordering = ("-published_date",) def save(self, *args, **kwargs):