Skip to content

adding a custom-object-types-field for custom-object-types named model generates a server error #299

@ifoughal

Description

@ifoughal

Plugin Version

v0.4.1

NetBox Version

v4.4.5

Python Version

3.12

Steps to Reproduce

  1. create a new custom-object-type:
  2. add a new field named model
  3. open the custom-object-type url : http://127.0.0.1:8585/plugins/custom-objects/<my_custom_object/
  4. page returns a server error
Image

Expected Behavior

Expecting the url of the newly created custom-object-type to return all the instances of this object or an empty table.

Observed Behavior

page return an internal server error, as the object-type-field named model generates this error.
renaming or deleting this field fixes the issue.

type object 'NoneType' has no attribute '_meta'

Python version: 3.12.3
NetBox version: 4.4.6-Docker-3.4.2
Plugins: 
  netbox_contract: 2.4.1
  netbox_custom_objects: 0.4.1
  netbox_routing: 0.3.1
  netbox_topology_views: 4.3.0
  nextbox_ui_plugin: 1.0.7

There must be a way to differentiate between built-in properties & custom created properties. maybe by adding a prefix to the attribute names?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions