From 313dcf072119a52edd01bc514222185445a7edd7 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 14:27:23 +0200 Subject: [PATCH] django_etebase utils: add optionl user to context. --- django_etebase/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django_etebase/utils.py b/django_etebase/utils.py index 1c8654b..09028c4 100644 --- a/django_etebase/utils.py +++ b/django_etebase/utils.py @@ -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):