armstrong/armstrong.core.arm_wells — pull request #29 by crccheck (2013-05-08 00:12:52+00:00)
Title: Add Django 1.5 Compatibility to arm_wells

NOT READY TO MERGE.

Opening this PR early because I just did some digging and needed a place to put my findings.

`arm_wells` is currently broken in Django 1.5 because the `MultipleObjectMixin.get_context_data` expects `object_list` to be passed into its kwargs. This *did not* change between Django 1.4 and 1.5. What *did* change is that `TemplateView` (which is above `MultipleObjectMixin` in the MRO), returned a dict and didn't go further up the MRO (https://github.com/django/django/blob/stable/1.4.x/django/views/generic/base.py#L117-L120 vs https://github.com/django/django/blob/stable/1.5.x/django/views/generic/base.py#L153)

### TODO
* [ ] get Django 1.4 to work again
* [ ] add test: `object_list` should be in the context of a `QuerySetBackedWellView` view because it extends `MultipleObjectMixin` (this is a bug in the current version of `arm_wells`)

### Addendum

Django 1.4.3:

ipdb> QuerySetBackedWellView.__mro__
(, , , , , , )

Django 1.5.1

ipdb> QuerySetBackedWellView.__mro__
(, , , , , , , )