Detail view for rendering JSON responses for a single object.
This class inherits from:
Usage example:
class ArticleView(JSONDetailView):
get_fields = {
'category': 'category',
'slug': 'slug',
}
document_class = Article
Return the retrieved object.
Returns: | JSONDetailView.object. |
---|