Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony
memopol
Commits
5457ba81
Commit
5457ba81
authored
Jun 09, 2016
by
Nicolas Joyard
Browse files
Do not skip inactive MEPs when importing
parent
2fa87a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives_recommendations/models.py
View file @
5457ba81
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment