1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed a couple of test-ordering-dependant failures introduced in [11639] that caused test failures when running the whole test suite.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss
2009-10-24 00:23:47 +00:00
parent 0d1177ae99
commit 9f70783b14
2 changed files with 13 additions and 5 deletions

View File

@@ -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)),
)