#NEWLINE# def populate_metadata( model , MetadataClass ) : #NEWLINE# #INDENT# ' For a given model and metadata class, ensure there is metadata for every instance. \n    ' #NEWLINE# content_type = ContentType . objects . get_for_model ( instance ) #NEWLINE# for instance in model . objects . all ( ) : #NEWLINE# #INDENT# create_metadata_instance ( MetadataClass , instance )