(self, bundle)
return bundle
Inserts the comments uri to the document bundle
Inserts the comments uri to the document bundle
Inserts the comments uri to the document bundle
def dehydrate(self, bundle):
        """
        Inserts the comments uri to the document bundle
        """
        bundle.data["comments_uri"] = reverse("api_get_comments", kwargs={
            "resource_name": "documents",
            "pk": bundle.data.get("id")
        })
        return bundle
def dehydrate ( self , bundle ) : bundle . data [ "comments_uri" ] = reverse ( "api_get_comments" , kwargs = { "resource_name" : "documents" , "pk" : bundle . data . get ( "id" ) } ) return bundle