Enabled filtering of sites, racks, and devices by tenant

This commit is contained in:
Jeremy Stretch
2016-07-26 17:28:46 -04:00
parent 7ca4c816c0
commit faa12abc70
4 changed files with 60 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ def expand_pattern(string):
class SiteListView(ObjectListView):
queryset = Site.objects.select_related('tenant')
filter = filters.SiteFilter
filter_form = forms.SiteFilterForm
table = tables.SiteTable
template_name = 'dcim/site_list.html'