Skip to content

Commit 24ffaf0

Browse files
committed
Fixes #13363: Fix API endpoint for custom field choice selector in forms
1 parent d9f3637 commit 24ffaf0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/release-notes/version-3.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

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

1011
---
1112

netbox/extras/models/customfields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def to_form_field(self, set_initial=True, enforce_required=True, enforce_visibil
449449
choices=choices,
450450
required=required,
451451
initial=initial,
452-
widget=widget_class(api_url=f'/api/extras/custom-field-choices/{self.choice_set.pk}/choices/')
452+
widget=widget_class(api_url=f'/api/extras/custom-field-choice-sets/{self.choice_set.pk}/choices/')
453453
)
454454

455455
# URL

0 commit comments

Comments
 (0)