#17434: Nicer name than object_list for ListViews -------------------------------+----------------------------------- Reporter: marclurr | Owner: nobody Type: New feature | Status: new Component: Generic views | Version: Severity: Normal | Keywords: listview generic view Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+----------------------------------- I ListViews, I think it would be nice if instead of creating a context variable called object_list, it was named based on the model.
For example for the following urlconfig {{{ #!div style="font-size: 80%" Code highlighting: {{{#!python (r'^publishers/$', ListView.as_view(model=User)) }}} }}} A variable called 'users' or 'user_list' would be added to the context. I understand that this would break backwards compatibility, so I propose creating a new Generic View to facilitate this (for example ModelListView). -- Ticket URL: <https://code.djangoproject.com/ticket/17434> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.