Skip to content

Commit

Permalink
Fixes #9328: Hide available IPs when non-default ordering is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Aug 31, 2022
1 parent 4dc059f commit 899b612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Bug Fixes

* [#9328](https://github.com/netbox-community/netbox/issues/9328) - Hide available IPs when non-default ordering is applied
* [#9895](https://github.com/netbox-community/netbox/issues/9895) - Various corrections to OpenAPI spec
* [#9962](https://github.com/netbox-community/netbox/issues/9962) - SSO login should respect `next` URL query parameter
* [#9963](https://github.com/netbox-community/netbox/issues/9963) - Fix support for custom `CSRF_COOKIE_NAME` value
Expand Down
3 changes: 1 addition & 2 deletions netbox/ipam/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,8 @@ def get_children(self, request, parent):
return parent.get_child_ips().restrict(request.user, 'view').prefetch_related('vrf', 'tenant', 'tenant__group')

def prep_table_data(self, request, queryset, parent):
if not request.GET.get('q'):
if not request.GET.get('q') and not request.GET.get('sort'):
return add_available_ipaddresses(parent.prefix, queryset, parent.is_pool)

return queryset

def get_extra_context(self, request, instance):
Expand Down

0 comments on commit 899b612

Please sign in to comment.