From 5457ba81db1b6c6e3a8d6a10471768f795466bbb Mon Sep 17 00:00:00 2001 From: Nicolas Joyard <joyard.nicolas@gmail.com> Date: Thu, 9 Jun 2016 07:18:29 +0200 Subject: [PATCH] Do not skip inactive MEPs when importing --- representatives_recommendations/models.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/representatives_recommendations/models.py b/representatives_recommendations/models.py index 5f6e64ef..7e887e03 100644 --- a/representatives_recommendations/models.py +++ b/representatives_recommendations/models.py @@ -3,8 +3,6 @@ from django.db import models from representatives_votes.contrib.parltrack.import_votes import \ vote_pre_import -from representatives.contrib.parltrack.import_representatives import \ - representative_pre_import from representatives_votes.models import Dossier, Proposal, Vote from representatives.models import Representative @@ -71,9 +69,3 @@ def skip_votes(sender, vote_data=None, **kwargs): if vote_data.get('epref', None) not in dossiers: return False vote_pre_import.connect(skip_votes) - - -def skip_representatives(sender, representative_data=None, **kwargs): - if not representative_data.get('active', False): - return False -representative_pre_import.connect(skip_representatives) -- GitLab