Admin panel bulk operations are broken #8896

Closed
opened 2025-12-29 20:42:37 +01:00 by adam · 1 comment
Owner

Originally created by @abhi1693 on GitHub (Nov 30, 2023).

Originally assigned to: @jeremystretch on GitHub.

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 https://github.com/Onemind-Services-LLC/netbox-secrets/issues/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 https://github.com/netbox-community/netbox/pull/13963

Here is a potential fix if this issue is not resolved within the core for other plugin developers: 768fc16474

Originally created by @abhi1693 on GitHub (Nov 30, 2023). Originally assigned to: @jeremystretch on GitHub. ### 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 https://github.com/Onemind-Services-LLC/netbox-secrets/issues/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 https://github.com/netbox-community/netbox/pull/13963 Here is a potential fix if this issue is not resolved within the core for other plugin developers: https://github.com/Onemind-Services-LLC/netbox-secrets/commit/768fc16474e7e97860b1c36a70ee7748f1c81ee6
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 20:42:37 +01:00
adam closed this issue 2025-12-29 20:42:37 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Nov 30, 2023):

See also: https://github.com/mattieserver/netbox-topology-views/issues/407

The clean fix for plugin authors is to just revert back to the normal form renderer:

https://github.com/mattieserver/netbox-topology-views/pull/408/files

@kkthxbye-code commented on GitHub (Nov 30, 2023): See also: https://github.com/mattieserver/netbox-topology-views/issues/407 The clean fix for plugin authors is to just revert back to the normal form renderer: https://github.com/mattieserver/netbox-topology-views/pull/408/files
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8896