diff options
Diffstat (limited to 'ishtar/furnitures/forms.py')
-rw-r--r-- | ishtar/furnitures/forms.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index 3736029d5..64acaa5c5 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -455,8 +455,12 @@ class FileFormGeneralRO(FileFormGeneral): class FileFormAddress(forms.Form): form_label = _("Address") + associated_models = {'town':models.Town} total_surface = forms.IntegerField(label=_("Total surface")) - address = forms.CharField(label=_(u"Address"), widget=forms.Textarea) + address = forms.CharField(label=_(u"Main address"), widget=forms.Textarea) + address_complement = forms.CharField(label=_(u"Main address - complement")) + postal_code = forms.CharField(label=_(u"Main address - postal code"), + max_length=10) class TownForm(forms.Form): form_label = _("Towns") |