Selaa lähdekoodia

'base_name' deprecated in DRF v3.9.0

Jeremy Stretch 6 vuotta sitten
vanhempi
commit
03b8759597
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      netbox/extras/api/urls.py

+ 1 - 1
netbox/extras/api/urls.py

@@ -18,7 +18,7 @@ router.APIRootView = ExtrasRootView
 router.register(r'_choices', views.ExtrasFieldChoicesViewSet, basename='field-choice')
 
 # Custom field choices
-router.register(r'_custom_field_choices', views.CustomFieldChoicesViewSet, base_name='custom-field-choice')
+router.register(r'_custom_field_choices', views.CustomFieldChoicesViewSet, basename='custom-field-choice')
 
 # Graphs
 router.register(r'graphs', views.GraphViewSet)