diff --git a/judge/views/user.py b/judge/views/user.py index 437f52568..7a5ef8ea5 100644 --- a/judge/views/user.py +++ b/judge/views/user.py @@ -103,7 +103,7 @@ def dispatch(self, request, *args, **kwargs): return super(UserPage, self).dispatch(request, *args, **kwargs) except Http404: return generic_message(request, _('No such user'), _('No user handle "%s".') % - self.kwargs.get(self.slug_url_kwarg, None)) + self.kwargs.get(self.slug_url_kwarg, None), status=404) def get_title(self): return (_('My account') if self.request.user == self.object.user else