mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 12:19:29 +00:00
Add recommended_user to link to the exact user class from the recommendation.
This commit is contained in:
@@ -91,6 +91,10 @@ class Recommendation(models.Model):
|
||||
def get_absolute_url(self):
|
||||
return ('hr.views.view_application', [self.application.id])
|
||||
|
||||
@property
|
||||
def recommended_user(self):
|
||||
return self.application.user
|
||||
|
||||
@property
|
||||
def is_valid(self):
|
||||
diff = self.recommendation_date - self.user_character.corporation_date
|
||||
|
||||
Reference in New Issue
Block a user