don't try to update non-existent readthroughs
This commit is contained in:
parent
af9768a2e3
commit
12810d8e34
2 changed files with 5 additions and 6 deletions
|
@ -118,10 +118,11 @@ class CreateStatus(View):
|
|||
status.save(created=created)
|
||||
|
||||
# update a readthrough, if needed
|
||||
try:
|
||||
edit_readthrough(request)
|
||||
except Http404:
|
||||
pass
|
||||
if bool(request.POST.get("id")):
|
||||
try:
|
||||
edit_readthrough(request)
|
||||
except Http404:
|
||||
pass
|
||||
|
||||
# force page reload if this was triggered from 'move' button
|
||||
if bool(request.POST.get("shelf")):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue