{% extends "templates/base.html" %} {% block content %} {% if user.is_superuser or user.id == user_to_edit.id %}
{% csrf_token %} {{ form.as_p }}
{% else %} {{ form.as_p }} {% endif %} {% endblock %}