1
0
mirror of https://github.com/django/django.git synced 2025-01-15 12:52:31 +00:00
django/tests/auth_tests/urls_admin.py
Tim Graham e55d888b66 [1.8.x] Moved contrib.auth tests out of contrib.
Backport of 2d7aca3da0a46c09e9c70ebdb56ed340691a999f from master
2015-02-11 12:02:35 -05:00

19 lines
505 B
Python

"""
Test URLs for auth admins.
"""
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.models import Group, User
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)
urlpatterns += [
url(r'^admin/', include(site.urls)),
]