mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Reference the local application, not the global scope
This commit is contained in:
@@ -119,7 +119,7 @@ class Recommendation(models.Model):
|
|||||||
@property
|
@property
|
||||||
def is_valid(self):
|
def is_valid(self):
|
||||||
diff = datetime.utcnow() - self.user_character.corporation_date
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user