1
0
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:
Drew Larson 2017-01-07 12:58:56 -06:00
parent f67f7a46a1
commit 4795162dbc

View File

@ -75,7 +75,7 @@ class Bike(models.Model):
and self.price is not None
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):
return self.claimed_by is None or self.last_worked_on > timezone.now() + timedelta(weeks=4)