New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config Context Fails to assign to "Device types" #13757
Comments
I made a simple test program - models.py:
testcmd:
Which shows the same issue. Potentially a Django bug as I haven't found anything saying this isn't allowed. Will only occur with the init in Tag model. |
I think I crossed that issue in a plugin too. I have a Model with a manytomany relationship with device_type and calling serialize_object to a obj of that model I got the same recursion error. |
Its exactly the same error I got in my plugin, another way to reproduce it is Stack Trace
|
Making some tests it I can fix the error by comenting those lines in dcim/models/device.py: |
Django ticket: |
NetBox version
v3.6.0
Python version
3.11
Steps to Reproduce
Expected Behavior
it should have assigned config context to "Device types"
Observed Behavior
<class 'RecursionError'>
maximum recursion depth exceeded in comparison
Python version: 3.11.4
NetBox version: 3.6.0
Plugins: None installed
The text was updated successfully, but these errors were encountered: