playlists/models.py
def recent_tracks(self):
        """Generates a list of recently played tracks in this playlist"""
        q = PlaylistTrack.all().filter('playlist =', self).order('-established')
        for track in q.fetch(1000):
            yield track
Generates a list of recently played tracks in this playlist
Generates a list of recently played tracks in this playlist
Generates a list of recently played tracks in this playlist
def recent_tracks(self):
        q = PlaylistTrack.all().filter('playlist =', self).order('-established')
        for track in q.fetch(1000):
            yield track
def recent_tracks ( self ) : q = PlaylistTrack . all ( ) . filter ( 'playlist =' , self ) . order ( '-established' ) for track in q . fetch ( 1000 ) : yield track
Generates a list of recently played tracks in this playlist
Generates a list of recently played tracks in this playlist
"""Generates a list of recently played tracks in this playlist"""
self