diff --git a/preflibapp/management/commands/dataset_as_yml.py b/preflibapp/management/commands/dataset_as_yml.py index 891fe44..b5b0cc3 100644 --- a/preflibapp/management/commands/dataset_as_yml.py +++ b/preflibapp/management/commands/dataset_as_yml.py @@ -28,7 +28,7 @@ def handle(self, *args, **options): "selected_studies": dataset.selected_studies, "publication_date": dataset.publication_date, "modification_date": dataset.modification_date, - "tags": [t.name for t in dataset.tags] + "tags": [t.name for t in dataset.tags.all()] }) if not options["f"]: diff --git a/requirements.txt b/requirements.txt index 503b683..2e6cf89 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ Django numpy preflibtools -django-distill \ No newline at end of file +django-distill +pyyaml \ No newline at end of file