aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/routeview
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-09-23 16:06:38 +0000
committerMichael Elkins <melkins@tislabs.com>2013-09-23 16:06:38 +0000
commit8fc676c4538c7b62f707272ba4a883bb04372a63 (patch)
treeaf22df96466efa7d285a5b0b0335b76776e1108e /rpkid/rpki/gui/routeview
parent6e449fbdf3fbf6c31a27c3ec3f95de61185b7f58 (diff)
revert [5498]
see #623 svn path=/trunk/; revision=5510
Diffstat (limited to 'rpkid/rpki/gui/routeview')
-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 e5646196..3989a5e1 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.ROA.objects.filter(
+ return cacheview.models.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.ROAPrefixV4.objects.filter(
+ return cacheview.models.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.cacheview import models as cacheview
+from rpki.gui import cacheview