djdb/models.py
def sorted_albums(self):
        """Sorted list of albums by this artist."""
        albums = []
        entities = sorted(self.album_set, key=lambda x: x.sort_key)
        for entity in entities:
            if not getattr(entity, "revoked", False):
                albums.append(entity)

        return albums
Sorted list of albums by this artist.
Sorted list of albums by this artist.
Sorted list of albums by this artist .
def sorted_albums(self):
        albums = []
        entities = sorted(self.album_set, key=lambda x: x.sort_key)
        for entity in entities:
            if not getattr(entity, "revoked", False):
                albums.append(entity)
        return albums
def sorted_albums ( self ) : albums = [ ] entities = sorted ( self . album_set , key = lambda x : x . sort_key ) for entity in entities : if not getattr ( entity , "revoked" , False ) : albums . append ( entity ) return albums
Sorted list of albums by this artist.
Sorted list of albums by this artist .
"""Sorted list of albums by this artist."""
self