Remove another unneeded lookup function

This commit is contained in:
2010-08-07 13:03:23 +01:00
parent c49f227e66
commit 2b2cf5e7b1
2 changed files with 1 additions and 6 deletions

View File

@@ -39,11 +39,6 @@ class EVEAccount(EVEAPIModel):
verbose_name="API Status", verbose_name="API Status",
help_text="End result of the last attempt at updating this object from the API.") 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): def in_corp(self, corpid):
for char in self.characters.all(): for char in self.characters.all():

View File

@@ -70,7 +70,7 @@ setup.</p>
<tr><td>{{ acc.api_user_id }}</td> <tr><td>{{ acc.api_user_id }}</td>
<td>{{ acc.api_key }}</td> <td>{{ acc.api_key }}</td>
<td>{{ acc.description }}</td> <td>{{ acc.description }}</td>
<td>{{ acc.api_status_description }}</td> <td>{{ acc.get_api_status_display }}</td>
<td>{{ acc.api_last_updated|naturaltimediff }}</td> <td>{{ acc.api_last_updated|naturaltimediff }}</td>
<td><a href="{% url sso.views.eveapi_refresh acc.api_user_id %}">Refresh</a>,&nbsp; <td><a href="{% url sso.views.eveapi_refresh acc.api_user_id %}">Refresh</a>,&nbsp;
<a href="{% url sso.views.eveapi_log acc.api_user_id %}">Logs</a>,&nbsp; <a href="{% url sso.views.eveapi_log acc.api_user_id %}">Logs</a>,&nbsp;