mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-25 02:41:43 +01:00
- Adopt Ruff `I` (isort) rules for consistent import sorting - Add two `# isort: split` boundaries to keep required imports pinned in `__init__.py` modules
22 lines
896 B
Python
22 lines
896 B
Python
from django.urls import include, path
|
|
|
|
from utilities.urls import get_model_urls
|
|
|
|
from . import views
|
|
|
|
app_name = 'account'
|
|
urlpatterns = [
|
|
|
|
# Account views
|
|
path('profile/', views.ProfileView.as_view(), name='profile'),
|
|
path('bookmarks/', views.BookmarkListView.as_view(), name='bookmarks'),
|
|
path('notifications/', views.NotificationListView.as_view(), name='notifications'),
|
|
path('subscriptions/', views.SubscriptionListView.as_view(), name='subscriptions'),
|
|
path('preferences/', views.UserConfigView.as_view(), name='preferences'),
|
|
path('password/', views.ChangePasswordView.as_view(), name='change_password'),
|
|
path('api-tokens/', views.UserTokenListView.as_view(), name='usertoken_list'),
|
|
path('api-tokens/add/', views.UserTokenEditView.as_view(), name='usertoken_add'),
|
|
path('api-tokens/<int:pk>/', include(get_model_urls('account', 'usertoken'))),
|
|
|
|
]
|