From 07e3e2e9c3da9f05634a45f65723504c229f2baa Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 May 2022 16:23:02 +0200 Subject: Migration to Django 2.2 - many fixes - remove redondant permissions - fix missing kwargs for widget and form fields - fix default to callable for model field - quick and dirty fix for datepicker - is_authenticated() -> is_authenticated - fix registration urls - remove six usage (no more python2) --- ishtar_common/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/backend.py') diff --git a/ishtar_common/backend.py b/ishtar_common/backend.py index e3d53c80e..00f90f444 100644 --- a/ishtar_common/backend.py +++ b/ishtar_common/backend.py @@ -33,7 +33,7 @@ class ObjectPermBackend(ModelBackend): supports_anonymous_user = True def has_perm(self, user_obj, perm, model=None, obj=None, session=None): - if not user_obj.is_authenticated(): + if not user_obj.is_authenticated: return False if not model: # let it manage by the default backend -- cgit v1.2.3