mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-04 22:36:24 -06:00
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
28 lines
1.1 KiB
Python
28 lines
1.1 KiB
Python
from django.urls import include, path
|
|
|
|
from utilities.urls import get_model_urls
|
|
from . import views # noqa F401
|
|
|
|
app_name = 'users'
|
|
urlpatterns = [
|
|
|
|
path('tokens/', include(get_model_urls('users', 'token', detail=False))),
|
|
path('tokens/<int:pk>/', include(get_model_urls('users', 'token'))),
|
|
|
|
path('users/', include(get_model_urls('users', 'user', detail=False))),
|
|
path('users/<int:pk>/', include(get_model_urls('users', 'user'))),
|
|
|
|
path('groups/', include(get_model_urls('users', 'group', detail=False))),
|
|
path('groups/<int:pk>/', include(get_model_urls('users', 'group'))),
|
|
|
|
path('permissions/', include(get_model_urls('users', 'objectpermission', detail=False))),
|
|
path('permissions/<int:pk>/', include(get_model_urls('users', 'objectpermission'))),
|
|
|
|
path('owner-groups/', include(get_model_urls('users', 'ownergroup', detail=False))),
|
|
path('owner-groups/<int:pk>/', include(get_model_urls('users', 'ownergroup'))),
|
|
|
|
path('owners/', include(get_model_urls('users', 'owner', detail=False))),
|
|
path('owners/<int:pk>/', include(get_model_urls('users', 'owner'))),
|
|
|
|
]
|