mirror of
https://github.com/etesync/server
synced 2024-11-22 16:58:08 +00:00
django_etebase utils: add optionl user to context.
This commit is contained in:
parent
b3c170e10d
commit
65cd722616
@ -15,7 +15,7 @@ class CallbackContext:
|
|||||||
"""Class for passing extra context to callbacks"""
|
"""Class for passing extra context to callbacks"""
|
||||||
|
|
||||||
url_kwargs: t.Dict[str, t.Any]
|
url_kwargs: t.Dict[str, t.Any]
|
||||||
user: t.Optional[User]
|
user: t.Optional[User] = None
|
||||||
|
|
||||||
|
|
||||||
def get_user_queryset(queryset, context: CallbackContext):
|
def get_user_queryset(queryset, context: CallbackContext):
|
||||||
|
Loading…
Reference in New Issue
Block a user