diff --git a/survey_contact_generation/models/survey_user_input.py b/survey_contact_generation/models/survey_user_input.py index 7f54edf..b47ca1e 100644 --- a/survey_contact_generation/models/survey_user_input.py +++ b/survey_contact_generation/models/survey_user_input.py @@ -61,7 +61,7 @@ class SurveyUserInput(models.Model): def _mark_done(self): """Generate the contact when the survey is submitted""" for user_input in self.filtered( - lambda r: r.survey_id.generate_contact and not self.partner_id + lambda r: r.survey_id.generate_contact# and not self.partner_id #uncomment to avoid contact generation several times ): vals = user_input._prepare_partner() partner = False