From 24ffaf09d440dd8cf3c88eca08ba48e4bd10b36e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 3 Aug 2023 08:53:46 -0400 Subject: [PATCH] Fixes #13363: Fix API endpoint for custom field choice selector in forms --- docs/release-notes/version-3.6.md | 1 + netbox/extras/models/customfields.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-3.6.md b/docs/release-notes/version-3.6.md index 8b14929d5..b5252b7e5 100644 --- a/docs/release-notes/version-3.6.md +++ b/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 * [#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 --- diff --git a/netbox/extras/models/customfields.py b/netbox/extras/models/customfields.py index 5b64d8cc5..25ce14ddf 100644 --- a/netbox/extras/models/customfields.py +++ b/netbox/extras/models/customfields.py @@ -449,7 +449,7 @@ class CustomField(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel): choices=choices, required=required, 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