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 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
|
||||||
|
|||||||
@@ -45,4 +45,3 @@ def blacklist_values(user):
|
|||||||
blacklist.extend(objs)
|
blacklist.extend(objs)
|
||||||
|
|
||||||
return blacklist
|
return blacklist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user