Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit eb712c7c authored by chirac's avatar chirac

Merge branch 'fix_inital_migration' into 'dev'

Fix initial migration

See merge request federez/re2o!295
parents 0e56f22f 992dc970
......@@ -30,7 +30,9 @@ def update_rights(apps, schema_editor):
app.models_module = False
former = Permission.objects.get(codename='change_facture_pdf')
ContentType = apps.get_model("contenttypes", "ContentType")
content_type = ContentType.objects.get_for_model(Permission)
former, created = Permission.objects.get_or_create(codename='change_facture_pdf', content_type=content_type)
new_1 = Permission.objects.get(codename='add_custominvoice')
new_2 = Permission.objects.get(codename='change_custominvoice')
new_3 = Permission.objects.get(codename='view_custominvoice')
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