update item on removing annotation

This commit is contained in:
j 2012-02-28 21:02:50 +01:00
commit c9a623275d
2 changed files with 8 additions and 2 deletions

View file

@ -166,8 +166,6 @@ def removeAnnotation(request):
if a.editable(request.user):
a.log()
a.delete()
if a.clip.annotations.count() == 0:
a.clip.delete()
else:
response = json_response(status=403, text='permission denied')
return render_to_json_response(response)