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
piks3l
Respect My Net
Commits
5627330d
Commit
5627330d
authored
Feb 15, 2016
by
Okhin
Browse files
QuerySet has no .objects #22
parent
066d1d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
5627330d
...
...
@@ -233,7 +233,7 @@ class ViolationsList(ListView):
queryset
=
queryset
.
filter
(
activationid
=
''
,
operator_ref__name
=
self
.
kwargs
[
'country'
])
if
'all'
not
in
self
.
request
.
GET
:
queryset
=
queryset
.
objects
.
filter
(
activationid
=
''
).
exclude
(
state__in
=
[
'duplicate'
,
'closed'
])
queryset
=
queryset
.
filter
(
activationid
=
''
).
exclude
(
state__in
=
[
'duplicate'
,
'closed'
])
return
queryset
def
get_context_data
(
self
,
**
kwargs
):
...
...
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