mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Give the User ID when trying to display the EVEAccount object
This commit is contained in:
@@ -44,6 +44,12 @@ class EVEAccount(EVEAPIModel):
|
|||||||
verbose_name="API Key Type",
|
verbose_name="API Key Type",
|
||||||
help_text="Type of API key")
|
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):
|
def in_corp(self, corpid):
|
||||||
for char in self.characters.all():
|
for char in self.characters.all():
|
||||||
if char.corporation_id == corpid:
|
if char.corporation_id == corpid:
|
||||||
|
|||||||
Reference in New Issue
Block a user