mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Missed imports, cleaned up code
This commit is contained in:
@@ -5,8 +5,6 @@ from django.contrib.auth.models import User
|
||||
from eve_api.models import EVEPlayerCharacter, EVEPlayerCorporation
|
||||
from hr.app_defines import *
|
||||
|
||||
from utils import installed
|
||||
|
||||
class Application(models.Model):
|
||||
""" Person's application to a corporation """
|
||||
|
||||
@@ -27,12 +25,14 @@ class Application(models.Model):
|
||||
|
||||
@property
|
||||
def blacklisted(self):
|
||||
from hr.utils import blacklist_values
|
||||
if len(self.blacklist_values) > 0:
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
def blacklist_values(self):
|
||||
from hr.utils import blacklist_values
|
||||
return blacklist_values(self.user)
|
||||
|
||||
@property
|
||||
|
||||
@@ -45,4 +45,3 @@ def blacklist_values(user):
|
||||
blacklist.extend(objs)
|
||||
|
||||
return blacklist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user