Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
266f0cc0
Commit
266f0cc0
authored
Sep 18, 2013
by
Kostas Papadimitriou
Browse files
helpdesk: Fix network interface queryset
parent
f34a03d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/helpdesk/views.py
View file @
266f0cc0
...
...
@@ -185,7 +185,8 @@ def account(request, search_query):
if
is_ip
:
try
:
nic
=
NetworkInterface
.
objects
.
get
(
ipv4
=
search_query
).
exclude
(
machine__deleted
=
True
)
nic
=
NetworkInterface
.
objects
.
filter
(
ipv4
=
search_query
).
exclude
(
machine__deleted
=
True
).
get
()
search_query
=
nic
.
machine
.
userid
is_uuid
=
True
except
NetworkInterface
.
DoesNotExist
:
...
...
Write
Preview
Markdown
is supported
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