-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
app: custom objectsseverity: highCompletely breaks certain functions, or substantially degrades performance application-wideCompletely breaks certain functions, or substantially degrades performance application-widestatus: acceptedtype: bug
Milestone
Description
Plugin Version
0.4.0
NetBox Version
4.4.4
Python Version
3.12
Steps to Reproduce
- Create Custom Object Type with a Multiple Object field
- POST to API to create an object of that type with any number of items in that field
I did this with prefixes on a fresh NetBox install and tried with a single Prefix ID and it still failed
Expected Behavior
Custom Object is created and field is populated
Observed Behavior
Received HTTP 500 Error code with the following text:
{'error': 'The .create() method does not support writable nested fields by '
'default.\n'
'Write an explicit .create() method for serializer '
'netbox_custom_objects.api.serializers.Table1ModelSerializer, or '
'set read_only=True on nested serializer fields.',
'exception': 'AssertionError',
'netbox_version': '4.4.4',
'python_version': '3.12.7'}
cre-ker
Metadata
Metadata
Assignees
Labels
app: custom objectsseverity: highCompletely breaks certain functions, or substantially degrades performance application-wideCompletely breaks certain functions, or substantially degrades performance application-widestatus: acceptedtype: bug