~mpontillo/maas/discovery-js-factory

« back to all changes in this revision

Viewing changes to src/maasserver/models/staticipaddress.py

  • Committer: Mike Pontillo
  • Date: 2016-09-02 20:25:22 UTC
  • Revision ID: mike.pontillo@canonical.com-20160902202522-3gid0v8jz1sn0hri
Add discovery websocket handler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
741
741
        would be implied by including a specific piece of information."""
742
742
        # Circular imports.
743
743
        # XXX mpontillo 2016-03-11 we should do the formatting client side.
744
 
        from maasserver.websockets.handlers.timestampedmodel import (
745
 
            dehydrate_datetime
746
 
        )
 
744
        from maasserver.websockets import dehydrate_datetime
747
745
        data = {
748
746
            "ip": self.ip,
749
747
            "alloc_type": self.alloc_type,