mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Force sorting on the employment history section
This commit is contained in:
@@ -80,13 +80,13 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% if character.employmenthistory.count %}
|
||||
{% if employmenthistory.count %}
|
||||
<div class="character_employmenthistory">
|
||||
<h2>Employment History</h2>
|
||||
|
||||
<table>
|
||||
<tr><th>Corporation</th><th>Join Date</th><th>Leave Date</th></tr>
|
||||
{% for hist in character.employmenthistory.all %}
|
||||
{% for hist in employmenthistory %}
|
||||
<tr><td><a href="{% url eveapi-corporation hist.corporation.id %}">{{ hist.corporation.name }}</a></td><td>{{ hist.start_date }}</td><td>{% if hist.end_date %}{{ hist.end_date }}{% endif %}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
@@ -173,6 +173,8 @@ def eveapi_character(request, charid=None, template='eve_api/character.html', li
|
||||
skillTree[-1][0] += skill.skillpoints
|
||||
skillTree[-1][2].append(skill)
|
||||
|
||||
employmenthistory = character.employmenthistory.all().order_by('-record_id')
|
||||
|
||||
context = {
|
||||
'character': character,
|
||||
'current_training': current_training,
|
||||
|
||||
Reference in New Issue
Block a user