diff --git a/ereuse_devicehub/resources/lot/models.py b/ereuse_devicehub/resources/lot/models.py index 8833412c..991e71b9 100644 --- a/ereuse_devicehub/resources/lot/models.py +++ b/ereuse_devicehub/resources/lot/models.py @@ -105,10 +105,8 @@ class Lot(Thing): return False if self.trade else True @property - def is_incominig(self): - if self.trade and self.trade.user_to == current_user: - return True - return False + def is_incoming(self): + return bool(self.trade and self.trade.user_to == current_user) @property def is_outgoing(self): diff --git a/ereuse_devicehub/templates/ereuse_devicehub/base_site.html b/ereuse_devicehub/templates/ereuse_devicehub/base_site.html index 94f78723..11f1850e 100644 --- a/ereuse_devicehub/templates/ereuse_devicehub/base_site.html +++ b/ereuse_devicehub/templates/ereuse_devicehub/base_site.html @@ -103,7 +103,7 @@