diff options
Diffstat (limited to 'tests/regressiontests/comment_tests/urls_admin.py')
| -rw-r--r-- | tests/regressiontests/comment_tests/urls_admin.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/regressiontests/comment_tests/urls_admin.py b/tests/regressiontests/comment_tests/urls_admin.py index 9e43d34865..341285d7ef 100644 --- a/tests/regressiontests/comment_tests/urls_admin.py +++ b/tests/regressiontests/comment_tests/urls_admin.py @@ -1,8 +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 -admin.autodiscover() +# 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)), + (r'^admin/', include(admin_site.urls)), ) |
