diff --git a/hr/models.py b/hr/models.py index cfa4748..fdb93d3 100644 --- a/hr/models.py +++ b/hr/models.py @@ -119,7 +119,7 @@ class Recommendation(models.Model): @property def is_valid(self): diff = datetime.utcnow() - self.user_character.corporation_date - if diff.days > settings.HR_RECOMMENDATION_DAYS and self.user_character == application.corporation: + if diff.days > settings.HR_RECOMMENDATION_DAYS and self.user_character == self.application.corporation: return True return False