it is possible not to loose an item
This commit is contained in:
parent
8dee36f928
commit
57e3feb414
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue