django_etebase utils: add optionl user to context.

This commit is contained in:
Tom Hacohen committed 2020-12-28 16:42:39 +02:00
1 parent c918d3ed07
commit 313dcf0721
1 file changed
+1
+1
View File
@@ -15,6 +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]
def get_user_queryset(queryset, context: CallbackContext): def get_user_queryset(queryset, context: CallbackContext):