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