From 65cd722616a5b7898ef559387463cdadce656482 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etebase/utils.py b/django_etebase/utils.py index 09028c4..e46cbd0 100644 --- a/django_etebase/utils.py +++ b/django_etebase/utils.py @@ -15,7 +15,7 @@ class CallbackContext: """Class for passing extra context to callbacks""" url_kwargs: t.Dict[str, t.Any] - user: t.Optional[User] + user: t.Optional[User] = None def get_user_queryset(queryset, context: CallbackContext):