From 7878b60eb67260750af11c1993fe83dfb08d0dd9 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 25 Jan 2025 18:58:07 +0100 Subject: [PATCH] =?UTF-8?q?Script=20servant=20=C3=A0=20cr=C3=A9er=20les=20?= =?UTF-8?q?slug=20des=20cat=C3=A9gories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/create_slug_categories.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/scripts/create_slug_categories.py diff --git a/src/scripts/create_slug_categories.py b/src/scripts/create_slug_categories.py new file mode 100644 index 0000000..73354ce --- /dev/null +++ b/src/scripts/create_slug_categories.py @@ -0,0 +1,10 @@ +from agenda_culturel.models import Category + + +def run(): + # concert, théâtre, jeune public, danse, arts du spectacle, exposition + # conférence, nature, + # divers + + for c in Category.objects.all(): + c.save()