mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-21 21:59:27 +00:00
Fix the blacklist staus
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user