MACAddressField Class Broken #8966

Closed
opened 2025-12-29 20:43:27 +01:00 by adam · 3 comments
Owner

Originally created by @wz4 on GitHub (Dec 15, 2023).

Deployment Type

Self-hosted

NetBox Version

v3.6.6

Python Version

3.8

Steps to Reproduce

MACAddressField class in utilities.forms.fields does not work. The widget is incorrectly assigned. Error occurs when loading form.

Expected Behavior

Validate MAC Address field in forms.

Observed Behavior

<class 'AttributeError'>

'CharField' object has no attribute 'attrs'

Originally created by @wz4 on GitHub (Dec 15, 2023). ### Deployment Type Self-hosted ### NetBox Version v3.6.6 ### Python Version 3.8 ### Steps to Reproduce MACAddressField class in utilities.forms.fields does not work. The widget is incorrectly assigned. Error occurs when loading form. ### Expected Behavior Validate MAC Address field in forms. ### Observed Behavior <class 'AttributeError'> 'CharField' object has no attribute 'attrs'
adam added the type: bugstatus: revisions needed labels 2025-12-29 20:43:27 +01:00
adam closed this issue 2025-12-29 20:43:27 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 15, 2023):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch commented on GitHub (Dec 15, 2023): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@abhi1693 commented on GitHub (Dec 15, 2023):

This is also a duplicate of #14260. You should show your plugin code because you are most likely passing incorrectly parameters to the field

@abhi1693 commented on GitHub (Dec 15, 2023): This is also a duplicate of #14260. You should show your plugin code because you are most likely passing incorrectly parameters to the field
Author
Owner

@jeremystretch commented on GitHub (Dec 26, 2023):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@jeremystretch commented on GitHub (Dec 26, 2023): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8966