Fixes #11650: Display error message when attempting to create device component with duplicate name

This commit is contained in:
jeremystretch
2023-02-02 14:59:16 -05:00
parent 6852685eac
commit 52233c6c79
2 changed files with 5 additions and 0 deletions

View File

@@ -453,6 +453,9 @@ class ComponentCreateView(GetReturnURLMixin, BaseObjectView):
if component_form.is_valid():
new_components.append(component_form)
else:
form.errors.update(component_form.errors)
break
if not form.errors and not component_form.errors:
try: