Silence deprecation warnings
https://docs.djangoproject.com/en/1.11/releases/1.10/#using-user-is-authenticated-and-user-is-anonymous-as-methods
This commit is contained in:
@@ -53,7 +53,7 @@ def cache_if_anonymous(*get_parameters):
|
||||
# If that page is cached the authentication doesn't
|
||||
# happen, so we disable the cache when that feature is enabled.
|
||||
if (
|
||||
not request.user.is_authenticated() and
|
||||
not request.user.is_authenticated and
|
||||
not settings.FEATURES['AUTH_USE_CERTIFICATES']
|
||||
):
|
||||
# Use the cache. The same view accessed through different domain names may
|
||||
|
||||
Reference in New Issue
Block a user