Skip to content

Commit

Permalink
explicit impersonate urls; preserve previous impersonate path
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina committed Nov 20, 2023
1 parent a7cf505 commit 95c0767
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion server/portal/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,36 @@
from django.views.generic import RedirectView
from django.views.generic.base import TemplateView
from django.urls import path, re_path, include
from impersonate import views as impersonate_views
admin.autodiscover()

urlpatterns = [

# admin.
path('core/admin/', admin.site.urls),
path('core/impersonate/', include('impersonate.urls')),

path(
'core/admin/impersonate/stop/',
impersonate_views.stop_impersonate,
name='impersonate-stop',
),
path(
'core/admin/impersonate/list/',
impersonate_views.list_users,
{'template': 'impersonate/list_users.html'},
name='impersonate-list',
),
path(
'core/admin/impersonate/search/',
impersonate_views.search_users,
{'template': 'impersonate/search_users.html'},
name='impersonate-search',
),
path(
'core/admin/impersonate/<int:uid>/',
impersonate_views.impersonate,
name='impersonate-start',
),

# terms-and-conditions
path('terms/', include('termsandconditions.urls')),
Expand Down

0 comments on commit 95c0767

Please sign in to comment.