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
|
||||
fields = ["user", "content", "content_warning", "sensitive", "privacy"]
|
||||
|
||||
|
||||
class ListStatusForm(CustomForm):
|
||||
class Meta:
|
||||
model = models.GeneratedNote
|
||||
fields = [
|
||||
'user', 'content', 'privacy', 'mention_books']
|
||||
fields = ["user", "content", "privacy", "mention_books"]
|
||||
|
||||
|
||||
class EditUserForm(CustomForm):
|
||||
|
|
|
@ -156,7 +156,7 @@ class List(View):
|
|||
"pending_count": book_list.listitem_set.filter(approved=False).count(),
|
||||
"suggested_books": suggestions,
|
||||
"list_form": forms.ListForm(instance=book_list),
|
||||
'status_form': forms.ListStatusForm(),
|
||||
"status_form": forms.ListStatusForm(),
|
||||
"query": query or "",
|
||||
"sort_form": forms.SortListForm(
|
||||
{"direction": direction, "sort_by": sort_by}
|
||||
|
|
Loading…
Reference in a new issue