Commit 9e0ab9df authored by Maël Kervella's avatar Maël Kervella

Fix : Quand on retire un elt d'une liste, la taille de la liste diminue

Faisait crasher dans certains cas
parent 7cc87388
......@@ -106,7 +106,7 @@ def index(request):
'user_id': v.revision.user_id,
'version': v }
else :
to_remove.append(i)
to_remove.insert(0,i)
# Remove all tagged invalid items
for i in to_remove :
versions.object_list.pop(i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment