django/django — pull request #2380 by dankram (2014-02-28 20:08:46+00:00)
Title: Update list.py

This allows for the model used to be overridden depending on request variables and other factors. If accepted this should be changed for detail, update and create views as well.

Example:

model_string = request.GET.get('model')
if model_string == 'cheese':
return Cheese
elif model_string == 'wine':
return Wine