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

dcim api: fix face default value in rackviewset

This commit is contained in:
hellerve
2019-12-08 18:24:13 +01:00
parent e5b49e25b9
commit 44b042e3fc

View File

@@ -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: