api_status_description now provides english description of API key status

This commit is contained in:
2010-03-24 11:37:11 +00:00
parent 67b9524ea9
commit f15993958f
2 changed files with 7 additions and 1 deletions

View File

@@ -39,6 +39,12 @@ class EVEAccount(EVEAPIModel):
verbose_name="API Status",
help_text="End result of the last attempt at updating this object from the API.")
@property
def api_status_description(self):
for choice in API_STATUS_CHOICES:
if choice[0] == self.api_status:
return choice[1]
def in_corp(self, corpid):
for char in self.characters.all():
if char.corporation_id == corpid: