app/django/contrib/flatpages/urls.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Thu, 21 May 2009 13:25:11 +0200
changeset 2330 068540d91bde
parent 54 03e267d67478
permissions -rw-r--r--
Now clicking cancel button returns user to previous page. Fixes issue 569. If you don't want that behaviour you can define cancel_redirect and user will be redirected to given url on "Cancel" button click instead of redirecting to previous page. Patch by: Daniel Hans & Pawel Solyga

from django.conf.urls.defaults import *

urlpatterns = patterns('django.contrib.flatpages.views',
    (r'^(?P<url>.*)$', 'flatpage'),
)