tomchristie/django-rest-framework — pull request #465 by ludwigkraatz (2012-12-01 13:16:44+00:00)
Title: allow third parties to add functionality more flexible

1) Renderers use self.context_class ( from api_settings ) now instead of hardcoded RequestContext

2) headers can be set from within a serzializer
advantages:
* Location Header can be set now even when there is an HyperlinkedIentityField within self.fields not called url or when the Model has defined a get_absolute_url method
* additional Header as for Pagination or anything else can be set by the Serializer or PaginationSerializer

3) some improvements when saving models from within mixins
* if creating an object, force_insert will be True, in order to let django.models.Model.save_base() know that this is a creation
* when just updating an object, force update is True