djdb/models.py
def sort_key(self):
        """A key that can be used to sort Albums into a reasonable order."""
        title = self.title
        if title.lower().startswith("the "):
            title = title[:4]
        return (self.artist_name, self.year, title, self.disc_number)
A key that can be used to sort Albums into a reasonable order.
A key that can be used to sort Albums into a reasonable order.
A key that can be used to sort Albums into a reasonable order .
def sort_key(self):
        title = self.title
        if title.lower().startswith("the "):
            title = title[:4]
        return (self.artist_name, self.year, title, self.disc_number)
def sort_key ( self ) : title = self . title if title . lower ( ) . startswith ( "the " ) : title = title [ : 4 ] return ( self . artist_name , self . year , title , self . disc_number )
A key that can be used to sort Albums into a reasonable order.
A key that can be used to sort Albums into a reasonable order .
"""A key that can be used to sort Albums into a reasonable order."""
self