Skip to content

Changing the field name of a 'multiple objects' field results in a Server Error #77

@tgrusendorf

Description

@tgrusendorf

Plugin Version

0.1.0

NetBox Version

4.3.3

Python Version

3.11.2

Steps to Reproduce

  1. Create a custom object type X
  2. Add a field Y of type multiple objects
  3. Create a custom object of type X. Either populate Y or leave it empty.
  4. Edit custom field Y, change the name (e.g. append _new), and click save

Expected Behavior

The changes to the custom field are accepted and reflected in existing objects.

Observed Behavior

A Server Error was raised and subsequent attempts to browse to the custom object type X failed with the same error. The custom object type had to be deleted and recreated.

<class 'django.db.utils.ProgrammingError'>

relation "custom_objects_8_name_new" does not exist
LINE 1: ...id" IN (SELECT U0."target_id" AS "target_id" FROM "custom_ob...
                                                             ^

Python version: 3.11.2
NetBox version: 4.3.3
Plugins: 
  netbox_custom_objects: 0.1.0

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions