Naturally 404 for deleted statuses
This commit is contained in:
parent
d6dc975a2e
commit
de9fbcef80
|
@ -26,7 +26,8 @@ class Status(View):
|
|||
''' display a particular status (and replies, etc) '''
|
||||
try:
|
||||
user = get_user_from_username(username)
|
||||
status = models.Status.objects.select_subclasses().get(id=status_id)
|
||||
status = models.Status.objects.select_subclasses().get(
|
||||
id=status_id, deleted=False)
|
||||
except ValueError:
|
||||
return HttpResponseNotFound()
|
||||
|
||||
|
|
Loading…
Reference in New Issue