Fixes issue in for_id_or_404

This commit is contained in:
Christopher Neugebauer 2016-09-21 15:58:58 +10:00
parent a445eed239
commit a16cb71463

View file

@ -21,4 +21,4 @@ class ForId(object):
try:
return cls.for_id(id_)
except ObjectDoesNotExist:
return Http404
raise Http404()