From 5e400fb37206981432f32859357b38cfcfbbc49d Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 8 Nov 2010 12:43:04 +0000 Subject: [PATCH] Give the User ID when trying to display the EVEAccount object --- eve_api/models/api_player.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eve_api/models/api_player.py b/eve_api/models/api_player.py index 1b69b04..6d62e4f 100644 --- a/eve_api/models/api_player.py +++ b/eve_api/models/api_player.py @@ -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: