def load_fixture(apps, schema_editor):
fixture_file = os.path.join(fixture_dir, fixture_filename)
fixture = open(fixture_file, 'rb')
objects = serializers.deserialize('json', fixture, ignorenonexistent=True)
for obj in objects:
obj.save()
fixture.close()
0002_data_migrations_for_fitbit_types.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录