fix clip index for newly added clips

This commit is contained in:
j 2015-10-04 11:04:46 +01:00
parent 5649892bbd
commit be1589569e
1 changed files with 2 additions and 1 deletions

View File

@ -106,8 +106,9 @@ class Edit(models.Model):
c = self.add_clip(data)
if c:
ids.insert(index, c.id)
index += 1
added.append(c.json(user))
added[-1]['index'] = index
index += 1
else:
return False
self.sort_clips(ids)