mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 20:46:30 -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)
|
||||
"""
|
||||
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)
|
||||
if exclude_pk is not None:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user