summaryrefslogtreecommitdiffstats
path: root/welco/qualif/models.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-05-19 14:41:16 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-07-12 20:55:21 (GMT)
commitd2361b5e8a858e67389a352f9a538aa443cb6b8a (patch)
tree5f0757fc762b6643b1878fdeeea0b4261845d299 /welco/qualif/models.py
parentb231dee24a7c04336f08e4650d7a3966bce73008 (diff)
downloadwelco-d2361b5e8a858e67389a352f9a538aa443cb6b8a.zip
welco-d2361b5e8a858e67389a352f9a538aa443cb6b8a.tar.gz
welco-d2361b5e8a858e67389a352f9a538aa443cb6b8a.tar.bz2
qualif: store keep formdata backoffice URL (#22550)
Diffstat (limited to 'welco/qualif/models.py')
-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 0ed0fe7..8c563f1 100644
--- a/welco/qualif/models.py
+++ b/welco/qualif/models.py
@@ -30,6 +30,7 @@ class Association(models.Model):
comments = models.TextField(blank=True, verbose_name=_('Comments'))
formdef_reference = models.CharField(max_length=250, null=True)
formdata_id = models.CharField(max_length=250, null=True)
+ formdata_url_backoffice = models.URLField(null=True)
def push(self, request):
# push validated request to wcs
@@ -40,7 +41,7 @@ class Association(models.Model):
reverse('wcs-summary', kwargs={'source_type': self.source_type_id,
'source_pk': self.source_pk}))
context.update(self.source.get_source_context(request))
- self.formdata_id = push_wcs_formdata(request, self.formdef_reference, context)
+ self.formdata_id, self.formdata_url_backoffice = push_wcs_formdata(request, self.formdef_reference, context)
self.save()
@property