summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py6
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)