diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-09 01:07:46 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-09 01:07:46 +0100 |
commit | 862afc0afe881ac712962e1a3caa4cc43dffde9a (patch) | |
tree | 2b84e5d55b78cd46f420f5b14ed8fa4334ef5f46 /ishtar/furnitures/forms.py | |
parent | 6afe48ce4f15f14b75980f62de321185367a3d64 (diff) | |
download | Ishtar-862afc0afe881ac712962e1a3caa4cc43dffde9a.tar.bz2 Ishtar-862afc0afe881ac712962e1a3caa4cc43dffde9a.zip |
Correct addresses of archeological files (refs #14)
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") |