mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-17 05:36:34 +00:00
Python formatting
This commit is contained in:
parent
1707bba8a8
commit
320dfd1a59
2 changed files with 4 additions and 3 deletions
|
@ -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",)},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue