diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-12-22 12:55:56 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-06 15:34:36 +0200 |
commit | 16fbb32b8ba00325a7b813825f288cb097699c98 (patch) | |
tree | 0d369c66f0fb06db3d99e55523623468db02d619 /archaeological_files/models.py | |
parent | 6dfd3fcc84950ac8a86824fad7b0e9acb407091e (diff) | |
download | Ishtar-16fbb32b8ba00325a7b813825f288cb097699c98.tar.bz2 Ishtar-16fbb32b8ba00325a7b813825f288cb097699c98.zip |
Workon alternate administrativ wizard
* reorganization of address fields
* add a main town field
* reorganize parcel wizard
* workon new administrativ wizard
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index a1b42f722..7dc10d49c 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -93,6 +93,8 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem, permit_reference = models.CharField(_(u"Permit reference"), max_length=60, blank=True, null=True) end_date = models.DateField(_(u"Closing date"), null=True, blank=True) + main_town = models.ForeignKey(Town, verbose_name=_(u"Town"), null=True, + blank=True, related_name='file_main') towns = models.ManyToManyField(Town, verbose_name=_(u"Towns"), related_name='file') creation_date = models.DateField(_(u"Creation date"), @@ -110,9 +112,9 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem, blank=True, null=True) total_developed_surface = models.IntegerField( _(u"Total developed surface (m²)"), blank=True, null=True) + locality = models.CharField(_(u"Locality"), + max_length=100, null=True, blank=True) address = models.TextField(_(u"Main address"), null=True, blank=True) - address_complement = models.TextField(_(u"Main address - complement"), - null=True, blank=True) postal_code = models.CharField(_(u"Main address - postal code"), max_length=10, null=True, blank=True) comment = models.TextField(_(u"Comment"), null=True, blank=True) |