mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 21:26:33 +00:00
Python formatting
This commit is contained in:
parent
df27614937
commit
92535a5481
2 changed files with 6 additions and 3 deletions
|
@ -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(),
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue