Commit d9a70dce authored by Hamza Dely's avatar Hamza Dely

[note_kfet/db_initial] Retire les références aux modèles Action/Paiement/Categorie

parent a466caf5
......@@ -52,20 +52,20 @@ for model, codename, niveau, description in environnement.ACCREDITATIONS:
'niveau' : niveau,
})
## Actions
Action = ContentType.objects.get(app_label="consos", model="action").model_class()
for action, description in environnement.ACTIONS:
Action.objects.get_or_create(action=action, description=description)
## Moyens de paiement
Paiement = ContentType.objects.get(app_label="consos", model="paiement").model_class()
for moyen, description in environnement.PAIEMENTS:
Paiement.objects.get_or_create(moyen=moyen, description=description)
## Catégories
Categorie = ContentType.objects.get(app_label="consos", model="categorie").model_class()
for nom, description in environnement.CATEGORIES:
Categorie.objects.get_or_create(nom=nom, description=description)
### Actions
#
#Action = ContentType.objects.get(app_label="consos", model="action").model_class()
#for action, description in environnement.ACTIONS:
# Action.objects.get_or_create(action=action, description=description)
#
### Moyens de paiement
#
#Paiement = ContentType.objects.get(app_label="consos", model="paiement").model_class()
#for moyen, description in environnement.PAIEMENTS:
# Paiement.objects.get_or_create(moyen=moyen, description=description)
#
### Catégories
#
#Categorie = ContentType.objects.get(app_label="consos", model="categorie").model_class()
#for nom, description in environnement.CATEGORIES:
# Categorie.objects.get_or_create(nom=nom, description=description)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment