Fix the broken link for substate reported in #109. Also use the idinternal

object's state-number fields instead of fetching the related row and
then using the ID field.
 - Legacy-Id: 564
This commit is contained in:
Bill Fenner 2007-06-20 21:57:53 +00:00
parent 91fbd02ef6
commit 43ae8b85ed

View file

@ -142,11 +142,11 @@
<td>
<div class="largefont3">
<a href="/idtracker/states/{{ object.cur_state.document_state_id }}/">
<a href="/idtracker/states/{{ object.cur_state_id }}/">
{{ object.cur_state }}</a>
{% if object.cur_sub_state %}
::
<a href="/idtracker/states/sub_state/{{ object.cur_substate.sub_state_id }}/">
<a href="/idtracker/states/substate/{{ object.cur_sub_state_id }}/">
{{ object.cur_sub_state }}
</a>
{% endif %}