Server error when adding a device bay with a name that is too long #933

Closed
opened 2025-12-29 16:27:03 +01:00 by adam · 0 comments
Owner

Originally created by @olfway on GitHub (May 10, 2017).

Issue type: bug report

Python version: 2.7.13
NetBox version: 2.0.1

I'm trying to add device bay template to device type and got exception:

URL: /dcim/device-types/1/device-bays/add/
Exception Type:	ValueError
Exception Value:	
'DeviceBayTemplateCreateForm' has no field named 'name'.
Exception Location:	/usr/local/lib/python2.7/site-packages/django/forms/forms.py in add_error, line 352

Actual error was too long device bay name: ValidationError([u'Ensure this value has at most 30 characters (it has 36).'])
but then it was addeed to non-existed "name" field, right field probably is "name_pattern"

Originally created by @olfway on GitHub (May 10, 2017). ### Issue type: bug report **Python version:** 2.7.13 **NetBox version:** 2.0.1 I'm trying to add device bay template to device type and got exception: ``` URL: /dcim/device-types/1/device-bays/add/ Exception Type: ValueError Exception Value: 'DeviceBayTemplateCreateForm' has no field named 'name'. Exception Location: /usr/local/lib/python2.7/site-packages/django/forms/forms.py in add_error, line 352 ``` Actual error was too long device bay name: ValidationError([u'Ensure this value has at most 30 characters (it has 36).']) but then it was addeed to non-existed "name" field, right field probably is "name_pattern"
adam added the type: bug label 2025-12-29 16:27:03 +01:00
adam closed this issue 2025-12-29 16:27:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#933