mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
dcim api: fix face default value in rackviewset
This commit is contained in:
parent
e5b49e25b9
commit
44b042e3fc
@ -183,7 +183,7 @@ class RackViewSet(CustomFieldModelViewSet):
|
|||||||
List rack units (by rack)
|
List rack units (by rack)
|
||||||
"""
|
"""
|
||||||
rack = get_object_or_404(Rack, pk=pk)
|
rack = get_object_or_404(Rack, pk=pk)
|
||||||
face = request.GET.get('face', 0)
|
face = request.GET.get('face', 'front')
|
||||||
exclude_pk = request.GET.get('exclude', None)
|
exclude_pk = request.GET.get('exclude', None)
|
||||||
if exclude_pk is not None:
|
if exclude_pk is not None:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user