1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Added front-end UI for RackGroups

This commit is contained in:
Jeremy Stretch
2016-03-30 12:26:37 -04:00
parent 87fffce7ea
commit 2f86d5e43d
10 changed files with 265 additions and 76 deletions

View File

@@ -142,6 +142,9 @@ class RackGroup(models.Model):
def __unicode__(self):
return self.name
def get_absolute_url(self):
return "{}?group={}".format(reverse('dcim:rack_list'), self.slug)
class Rack(models.Model):
"""