This post is four years old next week, but since there isn't otherwise much 
documentation on this, and it doesn't look like it has changed much, I'll 
just add that the way this is done now is by adding something like this to 
your view:

def get_view_name(self):
    name = "RECAP lookup API"
    suffix = getattr(self, 'suffix', None)
    if suffix:
        name += ' ' + suffix
    return name


You can also use a setting to do this in more sophisticated ways, as 
described here: 
http://www.django-rest-framework.org/api-guide/settings/#view_name_function, 
but I found the above to be more than sufficient.

Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to