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()