correct templates to use key.id in modelchoicefields

This commit is contained in:
Jeffrey Forman 2012-11-17 23:02:20 -05:00
parent 3451cae823
commit 650245582a
2 changed files with 4 additions and 7 deletions

View File

@ -42,9 +42,6 @@ Add CNAME record for {{ originating_record }}
<label class="control-label">TTL: </label>
<div class="controls">
<select name="ttl">
<!-- {% for key in tsig_keys %} -->
<!-- <option value="{{key}}">{{key}}</option> -->
<!-- {% endfor %} -->
<option value="86400">86400 (1 day)</option>
</select>
</div>
@ -56,7 +53,7 @@ Add CNAME record for {{ originating_record }}
<select name="key_name">
<option selected="selected" value=""></option>
{% for key in tsig_keys %}
<option value="{{key}}">{{key}}</option>
<option value="{{key.id}}">{{key}}</option>
{% endfor %}
</select>
</div>

View File

@ -79,7 +79,7 @@ Add record in {{ zone_name }}
<select name="key_name">
<option selected="selected" value=""/>
{% for key in tsig_keys %}
<option value="{{key}}">{{key}}</option>
<option value="{{key.id}}">{{key}}</option>
{% endfor %}
</select>
</div>