Missed imports, cleaned up code

This commit is contained in:
2011-03-09 13:02:12 +00:00
parent 127e98ecbc
commit 271098faa6
2 changed files with 2 additions and 3 deletions

View File

@@ -5,8 +5,6 @@ from django.contrib.auth.models import User
from eve_api.models import EVEPlayerCharacter, EVEPlayerCorporation from eve_api.models import EVEPlayerCharacter, EVEPlayerCorporation
from hr.app_defines import * from hr.app_defines import *
from utils import installed
class Application(models.Model): class Application(models.Model):
""" Person's application to a corporation """ """ Person's application to a corporation """
@@ -27,12 +25,14 @@ class Application(models.Model):
@property @property
def blacklisted(self): def blacklisted(self):
from hr.utils import blacklist_values
if len(self.blacklist_values) > 0: if len(self.blacklist_values) > 0:
return True return True
return False return False
@property @property
def blacklist_values(self): def blacklist_values(self):
from hr.utils import blacklist_values
return blacklist_values(self.user) return blacklist_values(self.user)
@property @property

View File

@@ -45,4 +45,3 @@ def blacklist_values(user):
blacklist.extend(objs) blacklist.extend(objs)
return blacklist return blacklist