djdb/models.py
def comments(self):
        """Returns all comments for this object."""
        comment_docs = [doc for doc in self.document_set
                        if doc.doctype == DOCTYPE_COMMENT]
        comment_docs.sort(key=lambda x: x.sort_key)
        return comment_docs
Returns all comments for this object.
Returns all comments for this object.
Returns all comments for this object .
def comments(self):
        comment_docs = [doc for doc in self.document_set
                        if doc.doctype == DOCTYPE_COMMENT]
        comment_docs.sort(key=lambda x: x.sort_key)
        return comment_docs
def comments ( self ) : comment_docs = [ doc for doc in self . document_set if doc . doctype == DOCTYPE_COMMENT ] comment_docs . sort ( key = lambda x : x . sort_key ) return comment_docs
Returns all comments for this object.
Returns all comments for this object .
"""Returns all comments for this object."""
self