diff --git a/media/management/commands/export_markdown_site.py b/media/management/commands/export_markdown_site.py index a3999c3..ad6335f 100644 --- a/media/management/commands/export_markdown_site.py +++ b/media/management/commands/export_markdown_site.py @@ -19,7 +19,7 @@ class Command(BaseCommand): for model_class, file_name in [(BD, "bd.md"), (Manga, "mangas.md"), (Roman, "romans.md"), (CD, "cd.md"), (Vinyle, "vinyle.md")]: with open(directory + "/docs/" + file_name, "w") as f: - f.write("# " + model_class._meta.verbose_name) + f.write("# " + str(model_class._meta.verbose_name)) titles = list(set(obj["title"] for obj in model_class.objects.values("title").distinct().all())) titles.sort()