mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Remove another unneeded lookup function
This commit is contained in:
@@ -39,11 +39,6 @@ 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():
|
||||
|
||||
@@ -70,7 +70,7 @@ setup.</p>
|
||||
<tr><td>{{ acc.api_user_id }}</td>
|
||||
<td>{{ acc.api_key }}</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><a href="{% url sso.views.eveapi_refresh acc.api_user_id %}">Refresh</a>,
|
||||
<a href="{% url sso.views.eveapi_log acc.api_user_id %}">Logs</a>,
|
||||
|
||||
Reference in New Issue
Block a user