Python formatting

This commit is contained in:
Mouse Reeve 2021-10-14 16:57:58 -07:00
parent df27614937
commit 92535a5481
2 changed files with 6 additions and 3 deletions

View file

@ -315,7 +315,9 @@ urlpatterns = [
re_path(
rf"{STATUS_PATH}/replies(.json)?/?$", views.Replies.as_view(), name="replies"
),
re_path(r"^edit/(?P<status_id>\d+)/?$", views.EditStatus.as_view(), name="edit-status"),
re_path(
r"^edit/(?P<status_id>\d+)/?$", views.EditStatus.as_view(), name="edit-status"
),
re_path(
r"^post/?$",
views.CreateStatus.as_view(),

View file

@ -28,7 +28,9 @@ class EditStatus(View):
def get(self, request, status_id): # pylint: disable=unused-argument
"""load the edit panel"""
status = get_object_or_404(models.Status.objects.select_subclasses(), id=status_id)
status = get_object_or_404(
models.Status.objects.select_subclasses(), id=status_id
)
status.raise_not_editable(request.user)
data = {
@ -44,7 +46,6 @@ class EditStatus(View):
status.raise_not_editable(request.user)
# pylint: disable= no-self-use
@method_decorator(login_required, name="dispatch")
class CreateStatus(View):