New version of black, new whitespace

This commit is contained in:
Mouse Reeve
2021-04-26 09:15:42 -07:00
parent ef83eb33b0
commit 3ade2d3bb1
152 changed files with 1289 additions and 1289 deletions

View File

@ -13,10 +13,10 @@ from .helpers import is_api_request
# pylint: disable= no-self-use
class Author(View):
""" this person wrote a book """
"""this person wrote a book"""
def get(self, request, author_id):
""" landing page for an author """
"""landing page for an author"""
author = get_object_or_404(models.Author, id=author_id)
if is_api_request(request):
@ -37,16 +37,16 @@ class Author(View):
permission_required("bookwyrm.edit_book", raise_exception=True), name="dispatch"
)
class EditAuthor(View):
""" edit author info """
"""edit author info"""
def get(self, request, author_id):
""" info about a book """
"""info about a book"""
author = get_object_or_404(models.Author, id=author_id)
data = {"author": author, "form": forms.AuthorForm(instance=author)}
return TemplateResponse(request, "edit_author.html", data)
def post(self, request, author_id):
""" edit a author cool """
"""edit a author cool"""
author = get_object_or_404(models.Author, id=author_id)
form = forms.AuthorForm(request.POST, request.FILES, instance=author)