2009-10-23 19:22:31 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
from django.contrib import admin
|
2009-10-24 00:23:47 +00:00
|
|
|
from django.contrib.comments.admin import CommentsAdmin
|
|
|
|
from django.contrib.comments.models import Comment
|
2009-10-23 19:22:31 +00:00
|
|
|
|
2009-10-24 00:23:47 +00:00
|
|
|
# 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)
|
2009-10-23 19:22:31 +00:00
|
|
|
|
2010-12-21 14:56:48 +00:00
|
|
|
# To demonstrate proper functionality even when ``delete_selected`` is removed.
|
|
|
|
admin_site2 = admin.AdminSite()
|
|
|
|
admin_site2.disable_action('delete_selected')
|
|
|
|
admin_site2.register(Comment, CommentsAdmin)
|
|
|
|
|
2009-10-23 19:22:31 +00:00
|
|
|
urlpatterns = patterns('',
|
2009-10-24 00:23:47 +00:00
|
|
|
(r'^admin/', include(admin_site.urls)),
|
2010-12-21 14:56:48 +00:00
|
|
|
(r'^admin2/', include(admin_site2.urls)),
|
2009-10-23 19:22:31 +00:00
|
|
|
)
|