Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a couple of test-ordering-dependant failures introduced in [116…
…39] 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
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)), | ||
) |