[PR #3775] [MERGED] Add request to Custom Script run, if receiver supports it #12636

Closed
opened 2025-12-29 22:22:46 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3775
Author: @steffann
Created: 12/17/2019
Status: Merged
Merged: 12/26/2019
Merged by: @jeremystretch

Base: developHead: 3705-make-current-user-available-in-custom-scripts


📝 Commits (1)

  • 0174c97 Implement request passing as a property of Script

📊 Changes

2 files changed (+9 additions, -2 deletions)

View changed files

📝 netbox/extras/scripts.py (+8 -1)
📝 netbox/extras/views.py (+1 -1)

📄 Description

Fixes: #3705

  • Check whether the script.run() method accepts request as a keyword argument
  • If it does, pass the current request to the method

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/3775 **Author:** [@steffann](https://github.com/steffann) **Created:** 12/17/2019 **Status:** ✅ Merged **Merged:** 12/26/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `3705-make-current-user-available-in-custom-scripts` --- ### 📝 Commits (1) - [`0174c97`](https://github.com/netbox-community/netbox/commit/0174c9747b563f95bf0708a0f9a49aee2b13cc5d) Implement request passing as a property of Script ### 📊 Changes **2 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/scripts.py` (+8 -1) 📝 `netbox/extras/views.py` (+1 -1) </details> ### 📄 Description ### Fixes: #3705 - Check whether the script.run() method accepts `request` as a keyword argument - If it does, pass the current request to the method --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:22:46 +01:00
adam closed this issue 2025-12-29 22:22:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12636