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
a57e3e04
Commit
a57e3e04
authored
Nov 13, 2013
by
Christos Stavrakakis
Browse files
helpdesk: Order IPs by allocation time
parent
623d23b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/helpdesk/views.py
View file @
a57e3e04
...
...
@@ -46,7 +46,7 @@ from urllib import unquote
import
astakosclient
from
snf_django.lib
import
astakos
from
synnefo.db.models
import
VirtualMachine
,
IPAddress
,
Network
,
IPAddressLog
from
synnefo.db.models
import
VirtualMachine
,
Network
,
IPAddressLog
# server actions specific imports
from
synnefo.api
import
util
...
...
@@ -276,7 +276,8 @@ def search_by_ip(request, search_query):
retry
=
2
,
use_pool
=
True
,
logger
=
logger
)
ips
=
IPAddressLog
.
objects
.
filter
(
address
=
search_query
)
ips
=
IPAddressLog
.
objects
.
filter
(
address
=
search_query
)
\
.
order_by
(
"allocated_at"
)
for
ip
in
ips
:
# Annotate IPs with the VM, Network and account attributes
...
...
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