Dynamic chocie fields should provide a default APISelect widget #3483

Closed
opened 2025-12-29 18:29:26 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 16, 2020).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Per my comment on #4255, DynamicModelChoiceField should render an APISelect widget with the appropriate data-url attribute by default, given the field's queryset.

Justification

The field's queryset alone provides the minimum information to render a widget. Building in this functionality will also simplify the use of ObjectVar fields in custom forms (#4255).

Originally created by @jeremystretch on GitHub (Mar 16, 2020). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Per [my comment](https://github.com/netbox-community/netbox/issues/4255#issuecomment-594814799) on #4255, DynamicModelChoiceField should render an APISelect widget with the appropriate `data-url` attribute by default, given the field's queryset. ### Justification The field's queryset alone provides the minimum information to render a widget. Building in this functionality will also simplify the use of ObjectVar fields in custom forms (#4255).
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:29:26 +01:00
adam closed this issue 2025-12-29 18:29:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3483