예제 #1
0
 def bootstrap_pass_one(cls):
     PostgresModel.bootstrap_pass_one(
         model_class=cls,
         xml_tag='master',
         name_attr='title',
         skip_without=['title'],
         )
예제 #2
0
 def bootstrap_pass_one(cls):
     PostgresModel.bootstrap_pass_one(
         model_class=cls,
         xml_tag='release',
         name_attr='title',
         skip_without=['title'],
         )
예제 #3
0
 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)
예제 #4
0
 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'],
         )
예제 #5
0
 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'],
         )