2013-03-27 16:23:59 +00:00
|
|
|
"""
|
|
|
|
Test URLs for auth admins.
|
|
|
|
"""
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import include, url
|
2013-03-27 16:23:59 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
# 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 += [
|
|
|
|
url(r'^admin/', include(site.urls)),
|
|
|
|
]
|