equal
deleted
inserted
replaced
|
1 from django.conf.urls.defaults import * |
|
2 from django.contrib import admin |
|
3 from django.contrib.comments.admin import CommentsAdmin |
|
4 from django.contrib.comments.models import Comment |
|
5 |
|
6 # Make a new AdminSite to avoid picking up the deliberately broken admin |
|
7 # modules in other tests. |
|
8 admin_site = admin.AdminSite() |
|
9 admin_site.register(Comment, CommentsAdmin) |
|
10 |
|
11 # To demonstrate proper functionality even when ``delete_selected`` is removed. |
|
12 admin_site2 = admin.AdminSite() |
|
13 admin_site2.disable_action('delete_selected') |
|
14 admin_site2.register(Comment, CommentsAdmin) |
|
15 |
|
16 urlpatterns = patterns('', |
|
17 (r'^admin/', include(admin_site.urls)), |
|
18 (r'^admin2/', include(admin_site2.urls)), |
|
19 ) |