Skip to content
Snippets Groups Projects
Commit 051a900e authored by LouisGendron's avatar LouisGendron
Browse files

Fix Profile related to Public ShareGroup creation

parent 0a4062b8
1 merge request!89Resolve "group public"
......@@ -6,7 +6,7 @@ from django.db import migrations
def add_public_sharegroup(apps, schema_editor):
ShareGroup = apps.get_model('portal', 'ShareGroup')
Profile = apps.get_model('portal', 'Profile')
creator = Profile.objects.get(user__username='louis.gendron@umontreal.ca')
creator = Profile.objects.filter(user__is_superuser=True).first()
group, created = ShareGroup.objects.get_or_create(name='Public', last_update_by=creator, managed_by_staff=True)
profiles = Profile.objects.all()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment