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
commitd903041535cf273bf49a2f4eee06546521a26c51 (patch)
treefaf0f20d409405afc8d579fd19e000b446b74a64 /ishtar_common/models.py
parent601b5ef0a53ff697890dcd0c26396aa664e35ad7 (diff)
downloadIshtar-d903041535cf273bf49a2f4eee06546521a26c51.tar.bz2
Ishtar-d903041535cf273bf49a2f4eee06546521a26c51.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')