Commit 63a62a47 authored by Thibaut Broggi's avatar Thibaut Broggi

Fix display of logged-in user group on /users/edit

parent f2dc05b4
Pipeline #1794 passed with stages
in 2 minutes and 41 seconds
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h3>Edit user <strong>{{ user.username }}</strong></h3> <h3>Edit user <strong>{{ user_edit.username }}</strong></h3>
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Update" /> <input type="submit" value="Update" />
......
...@@ -26,6 +26,7 @@ class UserEditView(LoginRequiredMixin, PermissionRequiredMixin, UpdateView): ...@@ -26,6 +26,7 @@ class UserEditView(LoginRequiredMixin, PermissionRequiredMixin, UpdateView):
model = User model = User
permission_required = 'userprofile.can_edit_users' permission_required = 'userprofile.can_edit_users'
template_name = 'user/user_update_form.html' template_name = 'user/user_update_form.html'
context_object_name = 'user_edit'
fields = ['groups'] fields = ['groups']
success_url = reverse_lazy("users:list") success_url = reverse_lazy("users:list")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment