tomchristie/django-rest-framework — pull request #391 by ludwigkraatz (2012-11-08 16:41:58+00:00)
Title: Namespaced views by serializer and Fields

Now by specifying a
* view_namespace attr in the Serializers Meta
and
* view_namespace attr when initializing the Hyperlinked FIeld,

Make sit possible to reverse to a *namespace:view*

This is better than just having view_name = "namespace:view" somehow specified in when initializing

It also gives the possibility of inheriting the namespace:
When using a Hyperlinked identity field, or some other related hyperlinked one the parents.opts view_namespace is been taken. This might not always be right, so one can set HyperlinkedRelatedField(view_namespace=False, ...) when no namespace at all should be used, even not the parent.opts one.

Default: no namespace