Django

Code

Ticket #3598 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

URL dispatch docs clairification, optional dictionary precedence

Reported by: yary h <nospam@example.com> Assigned to: adrian
Milestone: Component: Core framework
Version: SVN Keywords: URL dispatch
Cc: not.com@gmal.com Triage Stage: Ready for checkin
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I had a URL pattern like so:

r('^test/(?<foo>w+)?','test_view',{'foo':'there is no foo!'})

It's a case that's not covered in the documentation. It looks like the optional dictionary overrides the passed in URL, which isn't what I expect, but as an undocumented case with an easy work around, I can live with it.

Think about how above pattern should behave, check that it does it, and document!

thanks

Attachments

3598.diff (0.7 kB) - added by ubernostrum on 02/27/07 11:32:55.
Documentation patch

Change History

02/27/07 11:32:55 changed by ubernostrum

  • attachment 3598.diff added.

Documentation patch

02/27/07 11:33:17 changed by ubernostrum

  • needs_better_patch changed.
  • component changed from Uncategorized to Core framework.
  • needs_tests changed.
  • owner changed from jacob to adrian.
  • needs_docs changed.
  • stage changed from Unreviewed to Ready for checkin.

02/27/07 14:11:27 changed by jacob

  • status changed from new to closed.
  • resolution set to fixed.

(In [4638]) Fixed #3598: Added a note about the precedence of URL matches versus extra kwargs in URL patterns. Thanks, Ubernostrum.


Add/Change #3598 (URL dispatch docs clairification, optional dictionary precedence)




Change Properties
Action