diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-07-29 09:41:00 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-07-29 09:41:00 +0000 |
| commit | 2ccfb6d5c2ffb13ae3cb11a058ff574ab115518c (patch) | |
| tree | c1875a1bc27aeb9d683093db1e9c5565f7ac5c43 /docs/releases | |
| parent | 5fffe574bdd624f69eb246ed0833d7a2aba16edb (diff) | |
Fixed #16101 -- Added parameters to SingleObjectMixin to override the name of the URL keyword arguments used for pk and slug. Thanks, Andrew Ingram and Julien Phalip.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.4.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index 43c9ae25c5..2723b42195 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -153,6 +153,16 @@ number of characters. Truncated strings end with a translatable ellipsis sequence ("..."). See the :tfilter:`truncatechars docs <truncatechars>` for more details. +Customizable ``SingleObjectMixin`` URLConf kwargs +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Two new attributes, +:attr:`pk_url_kwarg<django.views.generic.detail.SingleObjectMixin.pk_url_kwarg>` and +:attr:`slug_url_kwarg<django.views.generic.detail.SingleObjectMixin.slug_url_kwarg>`, +have been added to :class:`django.views.generic.detail.SingleObjectMixin` to +enable the customization of URLConf keyword arguments used for single +object generic views. + CSRF improvements ~~~~~~~~~~~~~~~~~ |
