#NEWLINE# def _get_dependency_objects( self , attrname ) : #NEWLINE# #INDENT# '\n        Given the name of an attribute (depends_on or needed_by), either yields\n        a list of migration objects representing it, or errors out.\n        ' #NEWLINE# for ( app , name ) in getattr ( self . migration_class ( ) , attrname , [ ] ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# migrations = Migrations ( app ) #NEWLINE# #UNINDENT# except ImproperlyConfigured : #NEWLINE# #INDENT# raise exceptions . DependsOnUnmigratedApplication ( self , app ) #NEWLINE# #UNINDENT# migration = migrations . migration ( name ) #NEWLINE# try : #NEWLINE# #INDENT# migration . migration ( ) #NEWLINE# #UNINDENT# except exceptions . UnknownMigration : #NEWLINE# #INDENT# raise exceptions . DependsOnUnknownMigration ( self , migration ) #NEWLINE# #UNINDENT# if ( migration . is_before ( self ) == False ) : #NEWLINE# #INDENT# raise exceptions . DependsOnHigherMigration ( self , migration ) #NEWLINE# #UNINDENT# ( yield migration )