Python formatting

This commit is contained in:
Mouse Reeve 2021-03-24 08:39:37 -07:00
parent 1707bba8a8
commit 320dfd1a59
2 changed files with 4 additions and 3 deletions

View file

@ -6,12 +6,12 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('bookwyrm', '0057_user_discoverable'), ("bookwyrm", "0057_user_discoverable"),
] ]
operations = [ operations = [
migrations.AlterModelOptions( migrations.AlterModelOptions(
name='status', name="status",
options={'ordering': ('-published_date',)}, options={"ordering": ("-published_date",)},
), ),
] ]

View file

@ -60,6 +60,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
class Meta: class Meta:
""" default sorting """ """ default sorting """
ordering = ("-published_date",) ordering = ("-published_date",)
def save(self, *args, **kwargs): def save(self, *args, **kwargs):