mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Check stolen is False.
This commit is contained in:
parent
f67f7a46a1
commit
4795162dbc
@ -75,7 +75,7 @@ class Bike(models.Model):
|
|||||||
and self.price is not None
|
and self.price is not None
|
||||||
|
|
||||||
def can_available(self):
|
def can_available(self):
|
||||||
return self.stolen is not None and self.cpic_searched_at is not None and self.serial_number is not None
|
return self.stolen is False and self.cpic_searched_at is not None and self.serial_number is not None
|
||||||
|
|
||||||
def can_claim(self):
|
def can_claim(self):
|
||||||
return self.claimed_by is None or self.last_worked_on > timezone.now() + timedelta(weeks=4)
|
return self.claimed_by is None or self.last_worked_on > timezone.now() + timedelta(weeks=4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user