From 68f0b07848478b525898b73e0788f92bb6670210 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Apr 2018 18:12:11 +0200 Subject: Associate area to userprofiles (refs #4060) --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/models.py') 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') -- cgit v1.2.3