core: fix formatting
This commit is contained in:
parent
4c690a20ef
commit
33f5169f36
|
@ -114,9 +114,13 @@ class TokenUpdateView(
|
||||||
|
|
||||||
def get_object(self) -> Token:
|
def get_object(self) -> Token:
|
||||||
identifier = self.kwargs.get("identifier")
|
identifier = self.kwargs.get("identifier")
|
||||||
return get_objects_for_user(
|
return (
|
||||||
|
get_objects_for_user(
|
||||||
self.request.user, self.permission_required, self.model
|
self.request.user, self.permission_required, self.model
|
||||||
).filter(intent=TokenIntents.INTENT_API, identifier=identifier).first()
|
)
|
||||||
|
.filter(intent=TokenIntents.INTENT_API, identifier=identifier)
|
||||||
|
.first()
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class TokenDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessageView):
|
class TokenDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessageView):
|
||||||
|
@ -130,6 +134,10 @@ class TokenDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessage
|
||||||
|
|
||||||
def get_object(self) -> Token:
|
def get_object(self) -> Token:
|
||||||
identifier = self.kwargs.get("identifier")
|
identifier = self.kwargs.get("identifier")
|
||||||
return get_objects_for_user(
|
return (
|
||||||
|
get_objects_for_user(
|
||||||
self.request.user, self.permission_required, self.model
|
self.request.user, self.permission_required, self.model
|
||||||
).filter(intent=TokenIntents.INTENT_API, identifier=identifier).first()
|
)
|
||||||
|
.filter(intent=TokenIntents.INTENT_API, identifier=identifier)
|
||||||
|
.first()
|
||||||
|
)
|
||||||
|
|
Reference in a new issue