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