New version of black, new whitespace
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user