1👍
You need to have:
{% if request.user.is_active %}
Instead of
{% if user.is_active %}
In your template.
Source:stackexchange.com
1👍
You need to have:
{% if request.user.is_active %}
Instead of
{% if user.is_active %}
In your template.