#NEWLINE# @ classmethod #NEWLINE# def calculate_dependencies( cls , force = False ) : #NEWLINE# #INDENT# 'Goes through all the migrations, and works out the dependencies.' #NEWLINE# if ( getattr ( cls , '_dependencies_done' , False ) and ( not force ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for migrations in all_migrations ( ) : #NEWLINE# #INDENT# for migration in migrations : #NEWLINE# #INDENT# migration . calculate_dependencies ( ) #NEWLINE# #UNINDENT# #UNINDENT# cls . _dependencies_done = True