Small improvements to user list

This commit is contained in:
Raphael Michel
2018-01-29 13:25:33 +01:00
parent 219c2c94e8
commit 8143999803
2 changed files with 2 additions and 1 deletions

View File

@@ -54,7 +54,7 @@
<td><strong>
<a href="{% url "control:users.edit" id=u.pk %}">{{ u.email }}</a>
</strong></td>
<td>{{ u.fullname }}</td>
<td>{{ u.fullname|default_if_none:"" }}</td>
<td>{% if u.is_active %}<span class="fa fa-check-circle"></span>{% endif %}</td>
<td>{% if u.is_superuser %}<span class="fa fa-check-circle"></span>{% endif %}</td>
<td class="text-right">

View File

@@ -21,6 +21,7 @@ from pretix.control.views.user import RecentAuthenticationRequiredMixin
class UserListView(AdministratorPermissionRequiredMixin, ListView):
template_name = 'pretixcontrol/users/index.html'
context_object_name = 'users'
paginate_by = 30
def get_queryset(self):
qs = User.objects.all()