Corrected API display in application view

This commit is contained in:
orbitroom 2016-03-06 20:48:29 -05:00
parent 3507275e9d
commit 59a26e48fd
2 changed files with 5 additions and 2 deletions

View File

@ -153,7 +153,10 @@ def hr_application_view(request, app_id):
context = {
'application': application,
'comments': comments, 'comment_form': form}
'comments': comments,
'comment_form': form,
'apis': application.user.eveapikeypair_set.all(),
}
return render_to_response('registered/hrapplicationview.html',
context, context_instance=RequestContext(request))

View File

@ -143,7 +143,7 @@
<div class="row text-center">
{% for api in apis %}
<a href="{{ JACK_KNIFE_URL }}?usid={{ api._api_id }}&apik={{ api.api__key }}"
<a href="{{ JACK_KNIFE_URL }}?usid={{ api.api_id }}&apik={{ api.api_key }}"
target="_blank">
<button type="button" class="btn btn-lg btn-primary">API {{ api.api_id }}</button>
</a>