示例#1
0
文件: views.py 项目: vaidik/ReTweeter
def users(request):
	if not request.user.is_superuser:
		params = urlencode({'error': 'You are not permitted to access the admin features.'})
		return HttpResponseRedirect('/?' + params)

	data = {}

	u = User.objects.filter(is_superuser=0)
	data['users'] = u

	return render_page('users.html', data, request)