#14230: Documentation for Auth's Logout view suggests wrong redirect takes precedence. --------------------------------------------------+------------------------- Reporter: Keryn Knight <[email protected]> | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.2 Keywords: auth logout | Stage: Unreviewed Has_patch: 0 | --------------------------------------------------+------------------------- Currently, the documentation for [http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.logout django.contrib.auth.views.logout] states
''redirect_field_name: The name of a GET field containing the URL to redirect to after log out. Overrides next_page if the given GET parameter is passed.'' However, [http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/views.py#L69 as far as I can tell from staring at Trunk], this is only the case is next_page isn't also set. I appreciate it makes sense most of the time for only one to be provided, but as [http://botland.oebfare.com/logger/django/2010/8/13/7/#10:45-2424614 someone on IRC] discovered, you can supply both (erroneously or not), at which point the documentation suggests the wrong one takes precedence. -- Ticket URL: <http://code.djangoproject.com/ticket/14230> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
