1
Fork 0
yamdl-playground/yamdl_playground/core/utils.py
2024-03-31 14:20:03 +01:00

12 lines
337 B
Python

from yamdl.loader import ModelLoader
class CustomYamdlLoader(ModelLoader):
def load_fixture(self, model_class, data, file_path):
if file_path.suffix not in self.EXT_YAML:
data["slug"] = file_path.stem
super().load_fixture(model_class, data, file_path)
def show_debug_toolbar(request):
return True