diff options
author | Michael Elkins <melkins@tislabs.com> | 2010-07-16 22:59:26 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2010-07-16 22:59:26 +0000 |
commit | eb0446604ac67d8f861cf08ed673f93a0b073a04 (patch) | |
tree | db62bca4a1dc4b39891e713c206d6ca6f60957ac /portal-gui/rpkigui/myrpki/models.py | |
parent | e13f06bfd2016df8890613425c367094c6aa697b (diff) |
improved support for viewing unallocated address ranges in the dashboard and prefix views
svn path=/portal-gui/Makefile.in; revision=3415
Diffstat (limited to 'portal-gui/rpkigui/myrpki/models.py')
-rw-r--r-- | portal-gui/rpkigui/myrpki/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/portal-gui/rpkigui/myrpki/models.py b/portal-gui/rpkigui/myrpki/models.py index 1cfb1788..fc8d4a6d 100644 --- a/portal-gui/rpkigui/myrpki/models.py +++ b/portal-gui/rpkigui/myrpki/models.py @@ -127,6 +127,9 @@ class Asn(models.Model): def get_absolute_url(self): return u'/myrpki/asn/%d' % (self.pk,) + def as_resource_range(self): + return rpki.resource_set.resource_range_as(self.lo, self.hi) + class Child(models.Model): conf = models.ForeignKey(Conf, related_name='children') handle = HandleField() # parent's name for child |