forked from 0x2620/pandora
upload bug
This commit is contained in:
parent
af14651714
commit
ea919c2bc7
1 changed files with 1 additions and 2 deletions
|
@ -198,8 +198,7 @@ def firefogg_upload(request):
|
||||||
#404 if oshash is not know, files must be registered via update api first
|
#404 if oshash is not know, files must be registered via update api first
|
||||||
f = get_object_or_404(models.File, oshash=oshash)
|
f = get_object_or_404(models.File, oshash=oshash)
|
||||||
if f.editable(request.user):
|
if f.editable(request.user):
|
||||||
if f.video:
|
f.streams.all().delete()
|
||||||
f.video.delete()
|
|
||||||
f.available = False
|
f.available = False
|
||||||
f.save()
|
f.save()
|
||||||
response = {
|
response = {
|
||||||
|
|
Loading…
Reference in a new issue