django2.2: replace removed is_anonymous() and is_authenticated to their now used counterparts

This commit is contained in:
2019-10-06 01:34:21 +02:00
parent 90921fd4cd
commit 97c316b62e
11 changed files with 22 additions and 22 deletions

View File

@ -39,7 +39,7 @@
</div>
<header>
{% if not user.is_authenticated() %}
{% if not user.is_authenticated %}
<div id="header_logo" style="background-image: url('{{ static('core/img/logo.png') }}'); width: 185px; height: 100px;">
<a href="{{ url('core:index') }}"></a>
</div>

View File

@ -11,7 +11,7 @@
{% endif %}
{% if next %}
{% if user.is_authenticated() %}
{% if user.is_authenticated %}
<p>{% trans %}Your account doesn't have access to this page. To proceed,
please login with an account that has access.{% endtrans %}</p>
{% else %}