Ticket #7257: flatpage_view.diff
File flatpage_view.diff, 411 bytes (added by , 17 years ago) |
---|
-
views.py
21 21 """ 22 22 if not url.startswith('/'): 23 23 url = "/" + url 24 if not url.endswith('/'): 25 url = url + "/" 24 26 f = get_object_or_404(FlatPage, url__exact=url, sites__id__exact=settings.SITE_ID) 25 27 # If registration is required for accessing this page, and the user isn't 26 28 # logged in, redirect to the login page.