Skip to content

Admin panel bulk operations are broken #14392

@abhi1693

Description

@abhi1693

NetBox version

v3.6.6

Python version

3.10

Steps to Reproduce

  1. Navigate to your admin panel at /admin
  2. Create a nonce object (values do not matter) at /admin/social_django/nonce/
  3. From the list page, try to perform a bulk operation on the selected (1 or many) objects

Expected Behavior

The bulk operation should not crash

Observed Behavior

Log:

<class 'ValueError'>

Field 'id' expected a number but got ''.

Python version: 3.8.10
NetBox version: 3.6.6
Plugins: 
  netbox_demo: 0.3.1

This issue was first seen at Onemind-Services-LLC/netbox-secrets#106 and the temporary fix can be implemented by any plugin developer. However, this will not fix other admin models registered on the backend like django-social-auth.

The issue was due to the implementation of #13963

Here is a potential fix if this issue is not resolved within the core for other plugin developers: Onemind-Services-LLC/netbox-secrets@768fc16

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions