Skip to content
Snippets Groups Projects
Commit 8294bbf8 authored by Julian's avatar Julian
Browse files

Create OptimisticResponseTypeMixin

parent a3928d6e
No related branches found
No related tags found
1 merge request!1304Refactor calendar overview in more different components
Pipeline #141503 failed
......@@ -77,6 +77,16 @@ class PermissionsTypeMixin:
return info.context.user.has_perm(perm, root)
class OptimisticResponseTypeMixin:
"""Mixin for using OptimisticResponse in the frontend.
Simply adds a field called `is_optimistic` that is always false,
but should be set to true by the frontend
"""
is_optimistic = graphene.Boolean(default=False)
class PermissionBatchPatchMixin:
class Meta:
login_required = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment