A GET request to a bulk edit view triggers a server error #1252

Closed
opened 2025-12-29 16:30:42 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 20, 2017).

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.4.3
  • NetBox version: 2.1.4

Description

Bulk edit views are used to modify multiple objects at once. Requests must be POSTed. GET requests should be redirected to the default return URL. Instead, a TypeError similar to below is generated:

TypeError at /dcim/devices/edit/
get() takes 1 positional argument but 2 were given

This is because the GET request handler does not accept a request parameter.

Originally created by @jeremystretch on GitHub (Sep 20, 2017). ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [x] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> ### Environment * Python version: 3.4.3 * NetBox version: 2.1.4 ### Description Bulk edit views are used to modify multiple objects at once. Requests must be POSTed. GET requests should be redirected to the default return URL. Instead, a TypeError similar to below is generated: ``` TypeError at /dcim/devices/edit/ get() takes 1 positional argument but 2 were given ``` This is because the GET request handler does not accept a `request` parameter.
adam added the type: bug label 2025-12-29 16:30:42 +01:00
adam closed this issue 2025-12-29 16:30:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1252