~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to tests/urlpatterns_reverse/urls.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2014-04-22 20:44:18 UTC
  • Revision ID: package-import@ubuntu.com-20140422204418-z08viw45vzxteeza
Tags: 1.6.3-2
Fix regression of reverse() and partial views. (LP: #1311433)
Thanks Preston Timmons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
from django.conf.urls import patterns, url, include
4
4
 
5
 
from .views import empty_view, absolute_kwargs_view
 
5
from .views import empty_view, empty_view_partial, empty_view_wrapped, absolute_kwargs_view
6
6
 
7
7
 
8
8
other_patterns = patterns('',
53
53
            include('urlpatterns_reverse.included_urls')),
54
54
    url('', include('urlpatterns_reverse.extra_urls')),
55
55
 
 
56
    # Partials should be fine.
 
57
    url(r'^partial/', empty_view_partial, name="partial"),
 
58
    url(r'^partial_wrapped/', empty_view_wrapped, name="partial_wrapped"),
 
59
 
56
60
    # This is non-reversible, but we shouldn't blow up when parsing it.
57
61
    url(r'^(?:foo|bar)(\w+)/$', empty_view, name="disjunction"),
58
62