Fix usage of Http404 in admin page
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
61b4e78255
commit
4d3e7dfb57
|
@ -195,7 +195,7 @@ def admin_user(request, email):
|
|||
"""/admin/user/email@address.com - edit this user"""
|
||||
account = models.Account.get_account_for_email(email)
|
||||
if not account:
|
||||
raise Http404
|
||||
return http.HttpResponseNotFound("No such user")
|
||||
referrer = request.META.get('HTTP_REFERER', '/admin/users')
|
||||
state = {
|
||||
'account': account,
|
||||
|
|
Loading…
Reference in New Issue