mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-12-25 18:22:24 +00:00
Capitalize title
This commit is contained in:
parent
6abbaaf75d
commit
22408b16c7
@ -17,9 +17,9 @@ class Command(BaseCommand):
|
||||
directory = options["directory"]
|
||||
|
||||
for model_class, file_name in [(BD, "bd.md"), (Manga, "mangas.md"), (Roman, "romans.md"),
|
||||
(CD, "cd.md"), (Vinyle, "vinyle.md")]:
|
||||
(CD, "cd.md"), (Vinyle, "vinyles.md")]:
|
||||
with open(directory + "/docs/" + file_name, "w") as f:
|
||||
f.write("# " + str(model_class._meta.verbose_name) + "\n\n\n")
|
||||
f.write("# " + str(model_class._meta.verbose_name_plural).capitalize() + "\n\n\n")
|
||||
|
||||
titles = list(set(obj["title"] for obj in model_class.objects.values("title").distinct().all()))
|
||||
titles.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user