-
Notifications
You must be signed in to change notification settings - Fork 7
Constant instead of callable check #10
Copy link
Copy link
Open
Description
The simplest way to check rights is to return constant value, f.e. True, False, or {}. In case of constant grant type, the code should be allowed to look like:
ApplyAblePlugin(
changeable=False,
deleteable=False,
),instead of
ApplyAblePlugin(
changeable=lambda queryset, request: False,
deleteable=lambda queryset, request: False,
),Reactions are currently unavailable