mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #26006 -- Fixed incorrect object reference in SingleObjectMixin.get_context_object_name().
This commit is contained in:
parent
7df9aa3a33
commit
4b2dcfe04f
5 changed files with 30 additions and 1 deletions
|
@ -50,6 +50,8 @@ urlpatterns = [
|
|||
views.AuthorDetail.as_view(template_name='generic_views/about.html')),
|
||||
url(r'^detail/author/(?P<pk>[0-9]+)/context_object_name/$',
|
||||
views.AuthorDetail.as_view(context_object_name='thingy')),
|
||||
url(r'^detail/author/(?P<pk>[0-9]+)/custom_detail/$',
|
||||
views.AuthorCustomDetail.as_view()),
|
||||
url(r'^detail/author/(?P<pk>[0-9]+)/dupe_context_object_name/$',
|
||||
views.AuthorDetail.as_view(context_object_name='object')),
|
||||
url(r'^detail/page/(?P<pk>[0-9]+)/field/$',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue