Revision 4a71827c

b/snf-cyclades-app/synnefo/helpdesk/views.py
46 46
import astakosclient
47 47
from snf_django.lib import astakos
48 48

  
49
from synnefo.db.models import VirtualMachine, IPAddress, Network, IPAddressLog
49
from synnefo.db.models import VirtualMachine, Network, IPAddressLog
50 50

  
51 51
# server actions specific imports
52 52
from synnefo.api import util
......
276 276
                                                 retry=2, use_pool=True,
277 277
                                                 logger=logger)
278 278

  
279
    ips = IPAddressLog.objects.filter(address=search_query)
279
    ips = IPAddressLog.objects.filter(address=search_query)\
280
                              .order_by("allocated_at")
280 281

  
281 282
    for ip in ips:
282 283
        # Annotate IPs with the VM, Network and account attributes

Also available in: Unified diff