forked from CGM_Public/pretix_original
Small improvements to user list
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user