mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix alt checking
This commit is contained in:
@@ -85,7 +85,9 @@ class Application(models.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def alt_application(self):
|
def alt_application(self):
|
||||||
return EVEPlayerCharacter.objects.filter(corporation=self.corporation, eveaccount__user=self.user).count() > 0
|
if EVEPlayerCharacter.objects.filter(corporation=self.corporation, eveaccount__user=self.user).count() > 0:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user