def bootstrap_pass_one(cls): PostgresModel.bootstrap_pass_one( model_class=cls, xml_tag='master', name_attr='title', skip_without=['title'], )
def bootstrap_pass_one(cls): PostgresModel.bootstrap_pass_one( model_class=cls, xml_tag='release', name_attr='title', skip_without=['title'], )
def setUpTestDB(cls): Bootstrapper.is_test = True with test_utils.test_database( cls.test_database, cls.models, create_tables=False, fail_silently=True, ): print(PostgresModel._meta.database.database) PostgresModel.bootstrap_postgres_models(pessimistic=True)
def bootstrap_pass_one(cls): PostgresModel.bootstrap_pass_one( cls, 'artist', id_attr='entity_id', name_attr='name', skip_without=['name'], ) PostgresModel.bootstrap_pass_one( cls, 'label', id_attr='entity_id', name_attr='name', skip_without=['name'], )