aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/routeview/models.py
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-09-19 21:00:55 +0000
committerMichael Elkins <melkins@tislabs.com>2013-09-19 21:00:55 +0000
commitb50f539b3af0136ce603f9165f07e05c0e9a85e9 (patch)
tree394353bc467bd3d036a18108975cbf23cd7ddf17 /rpkid/rpki/gui/routeview/models.py
parentce00f18a52ac39435965c7356b331b926fcc23fa (diff)
import cacheview.models directly instead of cacheview
svn path=/trunk/; revision=5498
Diffstat (limited to 'rpkid/rpki/gui/routeview/models.py')
-rw-r--r--rpkid/rpki/gui/routeview/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpkid/rpki/gui/routeview/models.py b/rpkid/rpki/gui/routeview/models.py
index 3989a5e1..e5646196 100644
--- a/rpkid/rpki/gui/routeview/models.py
+++ b/rpkid/rpki/gui/routeview/models.py
@@ -31,7 +31,7 @@ class RouteOrigin(rpki.gui.models.PrefixV4):
@property
def roas(self):
"Return a queryset of ROAs which cover this route."
- return cacheview.models.ROA.objects.filter(
+ return cacheview.ROA.objects.filter(
prefixes__prefix_min__lte=self.prefix_min,
prefixes__prefix_max__gte=self.prefix_max
)
@@ -39,7 +39,7 @@ class RouteOrigin(rpki.gui.models.PrefixV4):
@property
def roa_prefixes(self):
"Return a queryset of ROA prefixes which cover this route."
- return cacheview.models.ROAPrefixV4.objects.filter(
+ return cacheview.ROAPrefixV4.objects.filter(
prefix_min__lte=self.prefix_min,
prefix_max__gte=self.prefix_max
)
@@ -78,4 +78,4 @@ class RouteOriginV6(rpki.gui.models.PrefixV6):
# this goes at the end of the file to avoid problems with circular imports
-from rpki.gui import cacheview
+from rpki.gui.cacheview import models as cacheview