Ticket #7257: flatpage_view.diff

File flatpage_view.diff, 411 bytes (added by sean, 16 years ago)
  • views.py

     
    2121    """
    2222    if not url.startswith('/'):
    2323        url = "/" + url
     24    if not url.endswith('/'):
     25        url = url + "/"
    2426    f = get_object_or_404(FlatPage, url__exact=url, sites__id__exact=settings.SITE_ID)
    2527    # If registration is required for accessing this page, and the user isn't
    2628    # logged in, redirect to the login page.
Back to Top