summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-18 18:12:11 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 08:41:54 +0200
commit68f0b07848478b525898b73e0788f92bb6670210 (patch)
treefaf0f20d409405afc8d579fd19e000b446b74a64 /ishtar_common/models.py
parent48046732fbbd307906c492344c886da5f713f06d (diff)
downloadIshtar-68f0b07848478b525898b73e0788f92bb6670210.tar.bz2
Ishtar-68f0b07848478b525898b73e0788f92bb6670210.zip
Associate area to userprofiles (refs #4060)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 1825335fd..ca4055fb2 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2675,6 +2675,8 @@ post_delete.connect(post_save_cache, sender=ProfileType)
class UserProfile(models.Model):
profile_type = models.ForeignKey(
ProfileType, verbose_name=_(u"Profile type"))
+ areas = models.ManyToManyField("Area", verbose_name=_(u"Areas"),
+ blank=True, related_name='profiles')
current = models.BooleanField(_(u"Current profile"), default=False)
person = models.ForeignKey(
Person, verbose_name=_(u"Person"), related_name='profiles')