From 80139eeedbbe2f6ba9b0488ec6ecaf179afc090f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 9 Jul 2011 11:20:16 +0100 Subject: [PATCH] Fix the blacklist staus --- app/hr/models.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/hr/models.py b/app/hr/models.py index a7f507a..81485dc 100644 --- a/app/hr/models.py +++ b/app/hr/models.py @@ -21,19 +21,13 @@ class Application(models.Model): help_text="Current status of this application request.") application_date = models.DateTimeField(auto_now_add=True, verbose_name="Created Date") - c = 0 - @models.permalink def get_absolute_url(self): return ('hr.views.view_application', [self.id]) @property def blacklisted(self): - if not hasattr(self, '_blflag'): - if len([x for x in self.blacklist_values if x.level == BLACKLIST_LEVEL_BLACKLIST]) > 0: - self._blflag = True - self._blflag = False - return self._blflag + return len([x for x in self.blacklist_values if x.level == BLACKLIST_LEVEL_BLACKLIST]) > 0 @property def blacklist_values(self):