Fix account lookup, also show accounts on the charlist

This commit is contained in:
2011-05-25 10:33:50 +01:00
parent 12079cb7d8
commit e445d2d82f
2 changed files with 8 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class EVEPlayerCharacter(EVEAPIModel):
return None
@property
def account(self)
def account(self):
if self.eveaccount_set.count():
return self.eveaccount_set.all()[0]
return None