def populate_metadata(model, MetadataClass):
content_type = ContentType.objects.get_for_model(model)<EOL>for instance in model.objects.all():<EOL><INDENT>create_metadata_instance(MetadataClass, instance)<EOL><DEDENT>
For a given model and metadata class, ensure there is metadata for every instance.