2013-03-27 17:23:59 +01:00
|
|
|
"""
|
|
|
|
Test URLs for auth admins.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.contrib import admin
|
2015-01-28 13:35:27 +01:00
|
|
|
from django.contrib.auth.admin import GroupAdmin, UserAdmin
|
|
|
|
from django.contrib.auth.models import Group, User
|
2013-03-27 17:23:59 +01:00
|
|
|
from django.contrib.auth.urls import urlpatterns
|
2018-12-07 23:52:28 +01:00
|
|
|
from django.urls import path
|
2013-03-27 17:23:59 +01: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 02:46:34 +02:00
|
|
|
urlpatterns += [
|
2018-12-07 23:52:28 +01:00
|
|
|
path("admin/", site.urls),
|
2014-04-02 02:46:34 +02:00
|
|
|
]
|