Open
Description
Deployment Type
Self-hosted
NetBox Version
v.4.2.5
Python Version
3.11
Steps to Reproduce
While developing a plugin I realized that the DynamicModelChoiceField doesn't display an error if required=True
and the nothing is selected. The form just doesn't submit and the view doesn't give a hint why.
- create a form with two choice fields (one django.forms.ModelChoiceField and one DynamicModelChoiceField)
- set both to be required
Expected Behavior
When both are empty the form should show an error message on submit
Observed Behavior
only the forms.ModelChoiceField shows an error message