#NEWLINE# def applied_migrations( self ) : #NEWLINE# #INDENT# '\n        Returns a set of (app, name) of applied migrations.\n        ' #NEWLINE# self . ensure_schema ( ) #NEWLINE# return set ( ( tuple ( self ) for x in self . migration_qs . values_list ( 'app' , 'name' ) ) )