mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 20:29:27 +00:00
Show if a account is not training on the character list
This commit is contained in:
@@ -33,6 +33,10 @@ class EVEAccount(EVEAPIModel):
|
||||
def in_corp(self, corpid):
|
||||
return self.character.filter(corporation__id=corpid).count()
|
||||
|
||||
@property
|
||||
def training(self):
|
||||
return self.characters.filter(eveplayercharacterskill__in_training__gt=0).count()
|
||||
|
||||
class Meta:
|
||||
app_label = 'eve_api'
|
||||
verbose_name = 'EVE Account'
|
||||
|
||||
Reference in New Issue
Block a user