Script servant à créer les slug des catégories
This commit is contained in:
parent
d9f1032eb2
commit
7878b60eb6
10
src/scripts/create_slug_categories.py
Normal file
10
src/scripts/create_slug_categories.py
Normal file
@ -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()
|
Loading…
x
Reference in New Issue
Block a user