Fixes issue in for_id_or_404
This commit is contained in:
parent
a445eed239
commit
a16cb71463
1 changed files with 1 additions and 1 deletions
|
@ -21,4 +21,4 @@ class ForId(object):
|
||||||
try:
|
try:
|
||||||
return cls.for_id(id_)
|
return cls.for_id(id_)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
return Http404
|
raise Http404()
|
||||||
|
|
Loading…
Reference in a new issue