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
memopol
Commits
4b979839
Commit
4b979839
authored
Jan 12, 2017
by
okhin
Browse files
Fixing the indenting
parent
df509e12
Pipeline
#745
failed with stage
in 9 minutes and 28 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/representatives/filters.py
View file @
4b979839
...
...
@@ -21,10 +21,6 @@ class ActiveMandateQueryFilterBackend(BaseFilterBackend):
if
self
.
query_param
in
request
.
GET
:
if
len
(
request
.
GET
[
self
.
query_param
]):
qs
=
qs
.
filter
(
mandates__in
=
Mandate
.
objects
.
filter
(
Q
(
end_date__gte
=
datetime
.
today
)
|
Q
(
end_date__isnull
=
True
))
.
filter
(
Q
(
group__name
=
request
.
GET
[
self
.
query_param
])
|
Q
(
group__abbreviation
=
request
.
GET
[
self
.
query_param
])))
.
distinct
()
qs
=
qs
.
filter
(
mandates__in
=
Mandate
.
objects
.
filter
(
Q
(
end_date__gte
=
datetime
.
today
)
|
Q
(
end_date__isnull
=
True
)).
filter
(
Q
(
group__name
=
request
.
GET
[
self
.
query_param
])
|
Q
(
group__abbreviation
=
request
.
GET
[
self
.
query_param
]))).
distinct
()
return
qs
return
qs
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