Skip to content

Commit

Permalink
Fixed bug introduced in 04fd197
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 27, 2016
1 parent e647065 commit d9d7068
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions netbox/ipam/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d9d7068

Please sign in to comment.