~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/regressiontests/comment_tests/urls_admin.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
urlpatterns = patterns('',
 
12
    (r'^admin/', include(admin_site.urls)),
 
13
)