it is possible not to loose an item

This commit is contained in:
Qwann 2018-08-09 17:56:54 +02:00
parent 8dee36f928
commit 57e3feb414

View file

@ -98,7 +98,7 @@ class Equipment(EventSpecificMixin, models.Model):
) )
def ids_aviable(self): def ids_aviable(self):
res = map(lambda x: x+1, range(self.stock)) res = list(map(lambda x: x+1, range(self.stock)))
for lost in self.losts.all(): for lost in self.losts.all():
res = [ x res = [ x
for x in res for x in res