formset weirdo

This commit is contained in:
Sanj 2011-09-01 06:52:31 +05:30
parent f7150de6e4
commit c9703c7796
3 changed files with 3 additions and 3 deletions

View File

@ -13,4 +13,4 @@ class BaseRelationsFormSet(BaseModelFormSet):
form.fields["feature_to"] = AutoCompleteSelectField('feature', required=False)
# 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)

View File

@ -18,7 +18,7 @@
<li><a href="/admin/places/feature">Features</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">Time-Frames</a></li>
<li><a href="/admin/places/authorityrecord">Time Frames</a></li>
</ul>
</div>
{% endblock %}

View File

@ -55,7 +55,7 @@
<li><a href="/admin/places/feature">Features</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">Time-Frames</a></li>
<li><a href="/admin/places/authorityrecord">Time Frames</a></li>
</ul>
</div>