Module ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Num attr keyword NameLoad AugAssignAdd NameStore Num decorator_list decorator_list
N/A django.core.management.base BaseCommand CommandError django db django.db connection transaction music.models Artist Command N/A BaseCommand N/A handle N/A N/A self N/A args options N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute 
        select 
            artist_id,
            count(*)
        from
            playlist_playlistprofile_fanof_artists
        group by artist_id
        order by count desc
         N/A i 1 N/A row N/A N/A cursor fetchall N/A N/A N/A N/A N/A N/A N/A Artist objects filter pk N/A row N/A 0 update rank i N/A i 1 N/A N/A