2012-10-12 04:48:48 +00:00
|
|
|
from django.http import Http404
|
|
|
|
from django.shortcuts import render
|
|
|
|
|
2017-03-26 00:50:10 +00:00
|
|
|
from django.contrib.auth.decorators import login_required
|
2020-11-22 12:21:54 +00:00
|
|
|
from django.contrib.auth import get_user_model
|
|
|
|
|
|
|
|
User = get_user_model()
|
2012-10-12 04:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
@login_required
|
|
|
|
def user_list(request):
|
2014-07-30 18:19:26 +00:00
|
|
|
|
2012-10-12 04:48:48 +00:00
|
|
|
if not request.user.is_staff:
|
|
|
|
raise Http404()
|
2014-07-30 18:19:26 +00:00
|
|
|
|
2015-10-16 17:36:58 +00:00
|
|
|
return render(request, "symposion/conference/user_list.html", {
|
2012-10-12 04:48:48 +00:00
|
|
|
"users": User.objects.all(),
|
|
|
|
})
|