add link to edit user in admin

This commit is contained in:
Ross
2023-05-22 11:21:32 +01:00
parent 4dc9fdcb8b
commit 56eb5f8230
2 changed files with 8 additions and 3 deletions
+3
View File
@@ -3,6 +3,9 @@
{% block content %}
<h2>Editing user: {{object.username}}</h2>
This form allows you to edit the users name and email address. More details (such as grade / supervisor / etc...) can be changed <a href="{% url 'account_profile_update' object.username %}">here</a>
{% if request.user.is_superuser %}
(<a href="{% url 'admin:auth_user_change' object.id %}" title="Edit the user using the admin interface">Admin Edit</a>)
{% endif %}
<form method="post">{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Update">