Added a easy way to lookup a account

This commit is contained in:
2011-05-25 10:24:04 +01:00
parent 9b2659b82e
commit 12079cb7d8

View File

@@ -68,6 +68,12 @@ class EVEPlayerCharacter(EVEAPIModel):
except EVEPlayerCharacterSkill.DoesNotExist:
return None
@property
def account(self)
if self.eveaccount_set.count():
return self.eveaccount_set.all()[0]
return None
def __unicode__(self):
if self.name:
return self.name