Skip to content
Extraits de code Groupes Projets
Valider 5457ba81 rédigé par Nicolas Joyard's avatar Nicolas Joyard
Parcourir les fichiers

Do not skip inactive MEPs when importing

parent 2fa87a88
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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)
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter