django_etebase utils: add optionl user to context.

master
Tom Hacohen 4 years ago
parent c918d3ed07
commit 313dcf0721

@ -15,6 +15,7 @@ class CallbackContext:
"""Class for passing extra context to callbacks"""
url_kwargs: t.Dict[str, t.Any]
user: t.Optional[User]
def get_user_queryset(queryset, context: CallbackContext):

Loading…
Cancel
Save