mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
[soc2009/multidb] Merged up to trunk r11756.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
13
tests/regressiontests/comment_tests/urls_admin.py
Normal file
13
tests/regressiontests/comment_tests/urls_admin.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.conf.urls.defaults import *
|
||||
from django.contrib import admin
|
||||
from django.contrib.comments.admin import CommentsAdmin
|
||||
from django.contrib.comments.models import Comment
|
||||
|
||||
# Make a new AdminSite to avoid picking up the deliberately broken admin
|
||||
# modules in other tests.
|
||||
admin_site = admin.AdminSite()
|
||||
admin_site.register(Comment, CommentsAdmin)
|
||||
|
||||
urlpatterns = patterns('',
|
||||
(r'^admin/', include(admin_site.urls)),
|
||||
)
|
||||
Reference in New Issue
Block a user