#17697: Implement a new property as list type (like extra_argument) into the
ListView class
-------------------------+-------------------------------------------------
     Reporter:  sylock   |      Owner:  nobody
         Type:           |     Status:  new
  Uncategorized          |    Version:  1.3
    Component:  Generic  |   Keywords:  extra_context generic views
  views                  |  listview
     Severity:  Normal   |  Has patch:  0
 Triage Stage:           |      UI/UX:  0
  Unreviewed             |
Easy pickings:  0        |
-------------------------+-------------------------------------------------
 Hello,

 In the deprecated implementation of generic views (as functions) there was
 the extra_context list to pass extra arguments to the template.
 Since 1.3 and the new implementation of generic views as classes doing the
 same need the creation of a new customized class which inherits from the
 ListView class as documented here (in the extra_context chapter):
 https://docs.djangoproject.com/en/dev/topics/generic-views-migration/#the-
 context-data-for-object-list-views

 It's not pythonic since the new implementation recquire more knowledge of
 the underlying code, and basicaly, more code to do the same! So it's a
 regression from my point of view.

 It would be really simple to solve it keeping classes implementation by
 creating a new property as list type. So when instanciate the ListView
 class we would be able to give the extra variables as arguments.

 Really need little modification to the existing code!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17697>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to