tomchristie/django-rest-framework — pull request #186 by lambdalisue (2012-03-16 03:39:54+00:00)
Title: Improve mixin's django compatibility.

Django SingleObjectMixin use ``get_object(queryset=None)`` for getting
model instance but django-rest-framework use ``get_instance(**kwargs)``

To use class decorator or method decorator which use ``get_object``
method to get the model instance (Eg. universal ``permission_required``
decorator found in django-permission), I simply add ``get_object`` method
to ``ModelMixin`` and change codes in ``ReadModelMixin``,
``UpdateModelMixin`` and ``DeleteModelMixin`` which use ``get_instance``
method previously.

Ofcourse, I confirmed that tests passed :-)