summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-02-08 17:22:20 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-02-08 17:22:20 (GMT)
commit4de052fac4d35da741860430fd9bab70929bed11 (patch)
tree91fb188ac4f386fa673082252dceecf77f9fe51d
parent5a7127ce03ca31539c072a05672e93fc0b1dd4cb (diff)
downloadwelco-0.20.zip
welco-0.20.tar.gz
welco-0.20.tar.bz2
misc: don't send user_id to wcs if there's nonev0.20
-rw-r--r--welco/qualif/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/welco/qualif/models.py b/welco/qualif/models.py
index bf2ef4a..7962b26 100644
--- a/welco/qualif/models.py
+++ b/welco/qualif/models.py
@@ -34,7 +34,8 @@ class Association(models.Model):
def push(self, request):
# push validated request to wcs
context = {}
- context['user_id'] = self.source.contact_id
+ if self.source.contact_id:
+ context['user_id'] = self.source.contact_id
context['channel'] = self.source._meta.app_label
context['summary_url'] = request.build_absolute_uri(
reverse('wcs-summary', kwargs={'source_type': self.source_type_id,