Просмотр исходного кода

Fixes #13363: Fix API endpoint for custom field choice selector in forms

Jeremy Stretch 2 лет назад
Родитель
Сommit
24ffaf09d4
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.6.md
  2. 1 1
      netbox/extras/models/customfields.py

+ 1 - 0
docs/release-notes/version-3.6.md

@@ -6,6 +6,7 @@
 
 
 * [#13351](https://github.com/netbox-community/netbox/issues/13351) - Fix missing text due to incorrectly applied translation tags
 * [#13351](https://github.com/netbox-community/netbox/issues/13351) - Fix missing text due to incorrectly applied translation tags
 * [#13361](https://github.com/netbox-community/netbox/issues/13361) - Extra choices field on custom field choice set form should not be required
 * [#13361](https://github.com/netbox-community/netbox/issues/13361) - Extra choices field on custom field choice set form should not be required
+* [#13363](https://github.com/netbox-community/netbox/issues/13363) - Fix API endpoint for custom field choice selector in forms
 
 
 ---
 ---
 
 

+ 1 - 1
netbox/extras/models/customfields.py

@@ -449,7 +449,7 @@ class CustomField(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel):
                 choices=choices,
                 choices=choices,
                 required=required,
                 required=required,
                 initial=initial,
                 initial=initial,
-                widget=widget_class(api_url=f'/api/extras/custom-field-choices/{self.choice_set.pk}/choices/')
+                widget=widget_class(api_url=f'/api/extras/custom-field-choice-sets/{self.choice_set.pk}/choices/')
             )
             )
 
 
         # URL
         # URL