2013-03-27 16:23:59 +00:00
|
|
|
"""
|
|
|
|
Test URLs for auth admins.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.contrib import admin
|
2015-01-28 12:35:27 +00:00
|
|
|
from django.contrib.auth.admin import GroupAdmin, UserAdmin
|
|
|
|
from django.contrib.auth.models import Group, User
|
2013-03-27 16:23:59 +00:00
|
|
|
from django.contrib.auth.urls import urlpatterns
|
2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import path
|
2013-03-27 16:23:59 +00:00
|
|
|
|
|
|
|
# Create a silo'd admin site for just the user/group admins.
|
|
|
|
site = admin.AdminSite(name='auth_test_admin')
|
|
|
|
site.register(User, UserAdmin)
|
|
|
|
site.register(Group, GroupAdmin)
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns += [
|
2018-12-07 22:52:28 +00:00
|
|
|
path('admin/', site.urls),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|