#27819: Display a warning when django.views.generic.ListView assumes the default
template name
--------------------------------------+------------------------------------
     Reporter:  Maker Bajax           |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  closed
    Component:  Generic views         |                  Version:  1.8
     Severity:  Normal                |               Resolution:  wontfix
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Nan Xiang):

 * cc: Nan Xiang (added)
 * status:  new => closed
 * resolution:   => wontfix


Comment:

 As the ListView document:

   We could explicitly tell the view which template to use by adding a
 template_name attribute to the view, but in the absence of an explicit
 template Django will infer one from     the object’s name. In this case,
 the inferred template will be "books/publisher_list.html" – the “books”
 part comes from the name of the app that defines the model, while the
 “publisher” bit is just the lowercased version of the model’s name.

 I suppose this ticket should be marked as wontfix.

--
Ticket URL: <https://code.djangoproject.com/ticket/27819#comment:4>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.4d125245db5c2c54be0b8e35fd8d579d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to