forked from mirrors/bookwyrm
Python formatting
This commit is contained in:
parent
ea0e54e8da
commit
7789b600e1
2 changed files with 3 additions and 3 deletions
|
@ -120,11 +120,11 @@ class StatusForm(CustomForm):
|
||||||
model = models.Status
|
model = models.Status
|
||||||
fields = ["user", "content", "content_warning", "sensitive", "privacy"]
|
fields = ["user", "content", "content_warning", "sensitive", "privacy"]
|
||||||
|
|
||||||
|
|
||||||
class ListStatusForm(CustomForm):
|
class ListStatusForm(CustomForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.GeneratedNote
|
model = models.GeneratedNote
|
||||||
fields = [
|
fields = ["user", "content", "privacy", "mention_books"]
|
||||||
'user', 'content', 'privacy', 'mention_books']
|
|
||||||
|
|
||||||
|
|
||||||
class EditUserForm(CustomForm):
|
class EditUserForm(CustomForm):
|
||||||
|
|
|
@ -156,7 +156,7 @@ class List(View):
|
||||||
"pending_count": book_list.listitem_set.filter(approved=False).count(),
|
"pending_count": book_list.listitem_set.filter(approved=False).count(),
|
||||||
"suggested_books": suggestions,
|
"suggested_books": suggestions,
|
||||||
"list_form": forms.ListForm(instance=book_list),
|
"list_form": forms.ListForm(instance=book_list),
|
||||||
'status_form': forms.ListStatusForm(),
|
"status_form": forms.ListStatusForm(),
|
||||||
"query": query or "",
|
"query": query or "",
|
||||||
"sort_form": forms.SortListForm(
|
"sort_form": forms.SortListForm(
|
||||||
{"direction": direction, "sort_by": sort_by}
|
{"direction": direction, "sort_by": sort_by}
|
||||||
|
|
Loading…
Reference in a new issue