diff options
Diffstat (limited to 'ishtar/ishtar_base/forms_common.py')
| -rw-r--r-- | ishtar/ishtar_base/forms_common.py | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/ishtar/ishtar_base/forms_common.py b/ishtar/ishtar_base/forms_common.py index 739f3953e..1bbdba3fc 100644 --- a/ishtar/ishtar_base/forms_common.py +++ b/ishtar/ishtar_base/forms_common.py @@ -352,6 +352,7 @@ account_management_wizard = AccountWizard([  class TownForm(forms.Form):      form_label = _("Towns") +    base_model = 'town'      associated_models = {'town':models.Town}      town = get_town_field(required=False) @@ -361,8 +362,8 @@ class TownFormSet(FormSet):          return self.check_duplicate(('town',),                                      _("There are identical towns.")) -TownFormSet = formset_factory(TownForm, can_delete=True, formset=TownFormSet) -TownFormSet.form_label = _("Towns") +TownFormset = formset_factory(TownForm, can_delete=True, formset=TownFormSet) +TownFormset.form_label = _("Towns")  class ParcelForm(forms.Form):      form_label = _("Parcels") @@ -488,6 +489,7 @@ class AuthorForm(forms.Form):  class AuthorFormSelection(forms.Form):      form_label = _(u"Author selection") +    base_model = 'author'      associated_models = {'author':models.Author}      author = forms.IntegerField(           widget=widgets.JQueryAutoComplete("/" + settings.URL_PATH + \ | 
