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

Adopted fix from #4743 and updated API tests

This commit is contained in:
Jeremy Stretch
2020-06-10 16:11:28 -04:00
parent 4078d9b669
commit 1f727f565f
2 changed files with 3 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ class PrefixViewSet(CustomFieldModelViewSet):
200: serializers.AvailableIPSerializer(many=True),
}
)
@action(detail=True, url_path='available-ips', methods=['get', 'post'])
@action(detail=True, url_path='available-ips', methods=['get', 'post'], queryset=IPAddress.objects.all())
@advisory_lock(ADVISORY_LOCK_KEYS['available-ips'])
def available_ips(self, request, pk=None):
"""