Give the User ID when trying to display the EVEAccount object

This commit is contained in:
2010-11-08 12:43:04 +00:00
parent 27d769e7a3
commit 5e400fb372

View File

@@ -44,6 +44,12 @@ class EVEAccount(EVEAPIModel):
verbose_name="API Key Type",
help_text="Type of API key")
def __unicode__(self):
return u"%s" % self.id
def __str__(self):
return self.__unicode__()
def in_corp(self, corpid):
for char in self.characters.all():
if char.corporation_id == corpid: