#21336: ListView doesnt work with context_object_name
-------------------------------+--------------------------------------
     Reporter:  anamsarfraz@…  |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  closed
    Component:  Documentation  |                  Version:  1.5
     Severity:  Normal         |               Resolution:  worksforme
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by alasdair):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => worksforme
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 template_object_name was definitely replaced with context_object_name when
 changing from function to class-based generic views.

 If you grep the source code for 1.5, you can see that template_object_name
 does not appear any where in the code:

 {{{
 [django]$ git checkout 1.5
 HEAD is now at b170c07... [1.5.x] Correct final element of version tuple.
 [django]$ git grep template_object_name
 [django]$
 }}}

 Note [https://docs.djangoproject.com/en/1.4/topics/generic-views-migration
 /#the-list-suffix-on-list-views the warning in the docs] that the
 template_object_name was appended with the suffix '_list', but in a class-
 based ListView, the context_object_name is used verbatim.

 If you need further help please see
 https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21336#comment:1>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/079.7c9fc6068673680eab84c97681d2c7d5%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to