Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladimir
noc
Commits
66ff9edf
Commit
66ff9edf
authored
Sep 02, 2009
by
Dmitry Volodin
Browse files
Managed object filter bugfix
parent
12a42770
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/models.py
View file @
66ff9edf
...
...
@@ -175,7 +175,7 @@ class ManagedObject(models.Model):
rr
.
append
(
"(sa_managedobject.administrative_domain_id=%s)"
)
pp
.
append
(
a
.
administrative_domain
.
id
)
if
a
.
group
:
rr
.
append
(
"(id IN (SELECT managedobject_id FROM sa_managedobject_groups WHERE objectgroup_id=%s))"
)
rr
.
append
(
"(
sa_managedobject.
id IN (SELECT managedobject_id FROM sa_managedobject_groups WHERE objectgroup_id=%s))"
)
pp
.
append
(
a
.
group
.
id
)
if
len
(
rr
)
==
1
:
# Single clause
r
+=
rr
...
...
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