Add recommended_user to link to the exact user class from the recommendation.

This commit is contained in:
2011-09-07 11:28:46 +01:00
parent 829cd75191
commit 86c55f19a8
2 changed files with 13 additions and 9 deletions

View File

@@ -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