7 lines
231 B
Python
7 lines
231 B
Python
|
from yamdl.loader import ModelLoader
|
||
|
|
||
|
class CustomYamdlLoader(ModelLoader):
|
||
|
def load_fixture(self, model_class, data, file_path):
|
||
|
data["slug"] = file_path.stem
|
||
|
super().load_fixture(model_class, data, file_path)
|