Open guillaumensft opened 2 years ago
def loaddata(self, schema, file):
if os.path.splitext(file)[1] == '.json' and file != 'initial_data.json':
schema = f'--schema="{schema}"'
os.system(f"python manage.py tenant_command loaddata {schema} {file}")
python manage.py tenant_command loaddata --schema="superchef" core\fixtures\fixtures.json from the views