WIP webapp: two changes to make work with Django 1.6:
1. Forms no longer allow and pass keywords to models. So, we catch the keyword (save_cache) set it to the instance, and use that. 2. In templates, apparently not able to pass form.model.item. Will need to be able to get access to it in render().
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
<tr><td id="rowspace"></td></tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">{{personform.gender_type.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render personform.gender_type user action None "/person/?search=gender%%3D%s" personform.model.gender_type %}</td>
|
||||
<td class="ColumnValue" id="data">{% render personform.gender_type user action None "/person/?search=gender%%3D%s" "personform.model.gender_type" %}</td>
|
||||
<td class="ColumnAttribute">{{personform.gramps_id.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render personform.gramps_id user action %}</td>
|
||||
<td class="ColumnAttribute">{{personform.tags.label}}:</td>
|
||||
|
Reference in New Issue
Block a user