Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
django-representatives
Commits
1d8b9047
Commit
1d8b9047
authored
Dec 13, 2015
by
Jamesie Pic
Browse files
fixup! Added parltrack_import_representatives command
parent
7bdc5ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives/contrib/parltrack/import_representatives.py
View file @
1d8b9047
...
...
@@ -91,8 +91,14 @@ class ParltrackImporter(GenericImporter):
self
.
add_contacts
(
representative
,
mep_json
)
# if you have memopol installed, this hook will trigger
# the legislature.models.mempol_representative to synchronize with
# legislature.models subclasses. If you choose a one-to-one relation
# instead then good for you, you made a wise decision and this won't do
# anything !
representative_post_save
.
send
(
sender
=
self
,
representative
=
representative
,
data
=
mep_json
)
logger
.
debug
(
'Imported MEP %s'
,
unicode
(
representative
))
return
representative
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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