Opened 13 years ago

Closed 13 years ago

#17723 closed Bug (fixed)

Documentation update for language code URL sniffing regression

Reported by: Ryan Kaskel Owned by: nobody
Component: Documentation Version: 1.4-beta-1
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

#17720 reports and r17547 fixes a regression related to the LocaleMiddleware sniffing language codes in the URL's path.

The patch required adding a keyword argument to django.utils.translation.get_language_from_request, which is a publicly documented function.

Attached is a doc patch noting the change.

Attachments (1)

17723.diff (998 bytes ) - added by Ryan Kaskel 13 years ago.

Download all attachments as: .zip

Change History (4)

by Ryan Kaskel, 13 years ago

Attachment: 17723.diff added

comment:1 by Ryan Kaskel, 13 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Anssi Kääriäinen, 13 years ago

The only question I have is if check_path is the right name for that parameter. Maybe check_url/check_url_path would be more descriptive? I didn't realize the function was a public one, so good catch there!

Just bike shedding here, so let the committer decide. I guess the current name is OK too.

comment:3 by Jannis Leidel, 13 years ago

Resolution: fixed
Status: newclosed

In [17627]:

Fixed #17723 -- Mentioned the changes done in r17547. Thanks, ryankask.

Note: See TracTickets for help on using tickets.
Back to Top