Skip to content

FieldDoesNotExist at /plugins/custom-objects/custom_object_type_fields/3/delete/ #129

@pobk

Description

@pobk

Plugin Version

0.1.0

NetBox Version

4.3.4

Python Version

3.12.11

Steps to Reproduce

  1. Create a field of type 'Multiple Object' - I created a reference to VRFs
  2. Attempt to delete the field.

Expected Behavior

Field is deleted.

Observed Behavior

Exception 'FieldDoesNotExist at /plugins/custom-objects/custom_object_type_fields/3/delete/' is raised.

FieldDoesNotExist at /plugins/custom-objects/custom_object_type_fields/3/delete/
Through_custom_objects_1_vrfs has no field named 'None'
  
Request Method: | GET
-- | --
http://localhost:8000/plugins/custom-objects/custom_object_type_fields/3/delete/?return_url=/plugins/custom-objects/custom_object_types/1/
5.2.4
FieldDoesNotExist
Through_custom_objects_1_vrfs has no field named 'None'

Last frame of the stack trace:

[redacted]/netbox/venv/lib/python3.12/site-packages/django/db/models/options.py, line 683, in get_field


                        "so if this is an auto-created related field, it won't "

                        "be available yet." % (self.object_name, field_name)

                    )

            try:

                # Retrieve field instance by name from cached or just-computed

                # field map.

                return self.fields_map[field_name]
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^

     …

            except KeyError:

                raise FieldDoesNotExist(

                    "%s has no field named '%s'" % (self.object_name, field_name)

                )

        def get_base_chain(self, model):

Locals for the frame:

field_name 	None
self 	 <Options for Through_custom_objects_1_vrfs>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions