summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index f6f824d73..7238d7782 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3742,6 +3742,13 @@ class Town(Imported, models.Model):
'year': self.year or ""}
return values
+ def get_values(self, prefix='', no_values=False, no_base_finds=True):
+ return {
+ prefix or "label": str(self),
+ prefix + "name": self.name,
+ prefix + "numero_insee": self.numero_insee
+ }
+
@classmethod
def history_decompress(cls, full_value, create=False):
if not full_value: