diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-01-18 00:56:40 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-01-18 00:56:40 +0000 |
commit | 23bb12b59fbcff250c0ec2fc4d19981983c19a4b (patch) | |
tree | d3592cf72c6666e02dbdd943bd2891c973b02296 /rpkid/rpki/gui/app/views.py | |
parent | 9f0bb2187cf5b905169e511962019f9e721bf6a8 (diff) |
fix dashboard view to filter asns properly
svn path=/branches/tk161/; revision=4218
Diffstat (limited to 'rpkid/rpki/gui/app/views.py')
-rw-r--r-- | rpkid/rpki/gui/app/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpkid/rpki/gui/app/views.py b/rpkid/rpki/gui/app/views.py index 9a35d6f8..4926d787 100644 --- a/rpkid/rpki/gui/app/views.py +++ b/rpkid/rpki/gui/app/views.py @@ -110,13 +110,13 @@ def dashboard(request, template_name='app/dashboard.html'): used_asns.extend((resource_set.resource_range_as(asn, asn) for asn in roa_asns)) # asns given to my children - child_asns = rpki.irdb.models.ChildASN(child__in=conf.children.all()) + child_asns = rpki.irdb.models.ChildASN.objects.filter(child__in=conf.children.all()) used_asns.extend((resource_set.resource_range_as(obj.start_as, obj.end_as) for obj in child_asns)) used_asns.canonize() # my received asns - asn = models.ResourceRangeAS(cert__parent__issuer=conf) + asns = models.ResourceRangeAS.objects.filter(cert__parent__issuer=conf) my_asns = resource_set.resource_set_as([resource_set.resource_range_as(obj.min, obj.max) for obj in asns]) unused_asns = my_asns.difference(used_asns) |