[PR #2546] [MERGED] Update django is_safe_url calls to new API #12402

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2546
Author: @jkjuopperi
Created: 11/3/2018
Status: Merged
Merged: 11/5/2018
Merged by: @jeremystretch

Base: develop-2.5Head: django_is_safe_url


📝 Commits (1)

  • 01f8817 Update django is_safe_url calls to new API

📊 Changes

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

View changed files

📝 netbox/users/views.py (+1 -1)
📝 netbox/utilities/views.py (+3 -3)

📄 Description

Fixes:

Bug #2545: Devopment version uses Django 2.1.3 but uses old is_safe_url API that does not work anymore. The is_safe_url 'host' parameter is now 'allowed_hosts' and accepts either a string or a list of strings.


🔄 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/2546 **Author:** [@jkjuopperi](https://github.com/jkjuopperi) **Created:** 11/3/2018 **Status:** ✅ Merged **Merged:** 11/5/2018 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.5` ← **Head:** `django_is_safe_url` --- ### 📝 Commits (1) - [`01f8817`](https://github.com/netbox-community/netbox/commit/01f8817fd9eff11d7df8ac725599ae649c3e7009) Update django is_safe_url calls to new API ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/users/views.py` (+1 -1) 📝 `netbox/utilities/views.py` (+3 -3) </details> ### 📄 Description ### Fixes: Bug #2545: Devopment version uses Django 2.1.3 but uses old is_safe_url API that does not work anymore. The is_safe_url 'host' parameter is now 'allowed_hosts' and accepts either a string or a list of strings. --- <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:21:18 +01:00
adam closed this issue 2025-12-29 22:21:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12402