From d9d7068c5f1a32ea516475653ca681be5b1788af Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 27 Dec 2016 14:18:31 -0500 Subject: [PATCH] Fixed bug introduced in 04fd197c9b752b7f0c3efef48e6c0f51e24714f6 --- netbox/ipam/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/netbox/ipam/views.py b/netbox/ipam/views.py index 3087efda4ac..30f2d5ab4da 100644 --- a/netbox/ipam/views.py +++ b/netbox/ipam/views.py @@ -293,7 +293,6 @@ def aggregate(request, pk): child_prefixes = add_available_prefixes(aggregate.prefix, child_prefixes) prefix_table = tables.PrefixTable(child_prefixes) - prefix_table.model = Prefix if request.user.has_perm('ipam.change_prefix') or request.user.has_perm('ipam.delete_prefix'): prefix_table.base_columns['pk'].visible = True RequestConfig(request, paginate={'klass': EnhancedPaginator}).configure(prefix_table) @@ -419,7 +418,6 @@ def prefix(request, pk): if child_prefixes: child_prefixes = add_available_prefixes(prefix.prefix, child_prefixes) child_prefix_table = tables.PrefixTable(child_prefixes) - child_prefix_table.model = Prefix if request.user.has_perm('ipam.change_prefix') or request.user.has_perm('ipam.delete_prefix'): child_prefix_table.base_columns['pk'].visible = True RequestConfig(request, paginate={'klass': EnhancedPaginator}).configure(child_prefix_table) @@ -481,7 +479,6 @@ def prefix_ipaddresses(request, pk): ipaddresses = add_available_ipaddresses(prefix.prefix, ipaddresses) ip_table = tables.IPAddressTable(ipaddresses) - ip_table.model = IPAddress if request.user.has_perm('ipam.change_ipaddress') or request.user.has_perm('ipam.delete_ipaddress'): ip_table.base_columns['pk'].visible = True RequestConfig(request, paginate={'klass': EnhancedPaginator}).configure(ip_table)