diff --git a/netbox/extras/api/views.py b/netbox/extras/api/views.py index 06797891ef6..f518275e0ed 100644 --- a/netbox/extras/api/views.py +++ b/netbox/extras/api/views.py @@ -82,7 +82,10 @@ def choices(self, request, pk): data = [ {'id': c[0], 'display': c[1]} for c in page ] - return self.get_paginated_response(data) + else: + data = [] + + return self.get_paginated_response(data) #