formset weirdo
This commit is contained in:
parent
f7150de6e4
commit
c9703c7796
|
@ -13,4 +13,4 @@ class BaseRelationsFormSet(BaseModelFormSet):
|
||||||
form.fields["feature_to"] = AutoCompleteSelectField('feature', required=False)
|
form.fields["feature_to"] = AutoCompleteSelectField('feature', required=False)
|
||||||
|
|
||||||
# pass in the base formset class to the factory
|
# pass in the base formset class to the factory
|
||||||
RelationFormSet = modelformset_factory(Relationship,fields=('feature_to','relationship_type'),extra=1,formset=BaseRelationsFormSet)
|
RelationFormSet = modelformset_factory(Relationship,fields=('feature_from','relationship_type'),extra=1,formset=BaseRelationsFormSet)
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<li><a href="/admin/places/feature">Features</a></li>
|
<li><a href="/admin/places/feature">Features</a></li>
|
||||||
<li><a href="/admin/places/featuretype">Feature Types</a></li>
|
<li><a href="/admin/places/featuretype">Feature Types</a></li>
|
||||||
<li><a href="/admin/places/authorityrecord">Authority Records</a></li>
|
<li><a href="/admin/places/authorityrecord">Authority Records</a></li>
|
||||||
<li><a href="/admin/places/authorityrecord">Time-Frames</a></li>
|
<li><a href="/admin/places/authorityrecord">Time Frames</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<li><a href="/admin/places/feature">Features</a></li>
|
<li><a href="/admin/places/feature">Features</a></li>
|
||||||
<li><a href="/admin/places/featuretype">Feature Types</a></li>
|
<li><a href="/admin/places/featuretype">Feature Types</a></li>
|
||||||
<li><a href="/admin/places/authorityrecord">Authority Records</a></li>
|
<li><a href="/admin/places/authorityrecord">Authority Records</a></li>
|
||||||
<li><a href="/admin/places/authorityrecord">Time-Frames</a></li>
|
<li><a href="/admin/places/authorityrecord">Time Frames</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user