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
TAlone
memopol
Commits
d150e7c3
Commit
d150e7c3
authored
Oct 05, 2016
by
Nicolas Joyard
Browse files
Fix QA
parent
714aab07
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/representatives/models.py
View file @
d150e7c3
...
...
@@ -231,8 +231,6 @@ class MandateManager(models.Manager):
'group'
,
'constituency'
)
class
MandateManager
(
models
.
Manager
):
def
get_by_natural_key
(
self
,
begin_date
,
end_date
,
representative_slug
,
group_name
,
group_kind
,
group_chamber_nk
):
representative
=
Representative
.
objects
.
get_by_natural_key
(
...
...
src/representatives/tests/base.py
View file @
d150e7c3
...
...
@@ -23,9 +23,9 @@ class TestBase(test.TestCase):
if
field
in
compare
:
compare
.
pop
(
field
)
for
r
e
in
self
.
_exclude_re
:
for
r
in
self
.
_exclude_re
:
for
field
in
compare
.
keys
():
if
r
e
.
match
(
field
):
if
r
.
match
(
field
):
compare
.
pop
(
field
)
try
:
...
...
src/representatives_votes/contrib/parltrack/tests/test_parltrack_import.py
View file @
d150e7c3
...
...
@@ -2,7 +2,6 @@ import mock
import
os
from
django.core.management
import
call_command
from
django.test
import
TestCase
from
representatives_votes.contrib.parltrack
import
import_dossiers
from
representatives_votes.contrib.parltrack
import
import_votes
from
representatives_votes.models
import
Dossier
,
Proposal
,
Vote
...
...
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