mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Dropped backward compatibility for the /admin/webhook-backend-status URL
This commit is contained in:
parent
b31cc89478
commit
bb1484a444
@ -16,4 +16,5 @@ NetBox v2.9 replaces Django's built-in permissions framework with one that suppo
|
||||
|
||||
* The `secrets.activate_userkey` permission no longer exists. Instead, `secrets.change_userkey` is checked to determine whether a user has the ability to activate a UserKey.
|
||||
* The `users.delete_token` permission is no longer enforced. All users are permitted to delete their own API tokens.
|
||||
* Backward compatibility for the `webhooks` Redis queue configuration has been dropped. (Use `tasks` instead.)
|
||||
* Dropped backward compatibility for the `webhooks` Redis queue configuration (use `tasks` instead).
|
||||
* Dropped backward compatibility for the `/admin/webhook-backend-status` URL (moved to `/admin/background-tasks/`).
|
||||
|
@ -1,7 +1,6 @@
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include
|
||||
from django.urls import path, re_path, reverse
|
||||
from django.views.generic.base import RedirectView
|
||||
from django.urls import path, re_path
|
||||
from django.views.static import serve
|
||||
from drf_yasg import openapi
|
||||
from drf_yasg.views import get_schema_view
|
||||
@ -12,17 +11,6 @@ from users.views import LoginView, LogoutView
|
||||
from .admin import admin_site
|
||||
|
||||
|
||||
# TODO: Remove in v2.9
|
||||
class RQRedirectView(RedirectView):
|
||||
"""
|
||||
Temporary 301 redirect from the old URL to the new one.
|
||||
"""
|
||||
permanent = True
|
||||
|
||||
def get_redirect_url(self, *args, **kwargs):
|
||||
return reverse('rq_home')
|
||||
|
||||
|
||||
openapi_info = openapi.Info(
|
||||
title="NetBox API",
|
||||
default_version='v2',
|
||||
@ -77,8 +65,6 @@ _patterns = [
|
||||
# Admin
|
||||
path('admin/', admin_site.urls),
|
||||
path('admin/background-tasks/', include('django_rq.urls')),
|
||||
# TODO: Remove in v2.9
|
||||
path('admin/webhook-backend-status/', RQRedirectView.as_view()),
|
||||
|
||||
# Errors
|
||||
path('media-failure/', StaticMediaFailureView.as_view(), name='media_failure'),
|
||||
|
Loading…
Reference in New Issue
Block a user