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

Set Public ShareGroup to managed_by_staff

parent e7d15b86
No related branches found
No related tags found
1 merge request!89Resolve "group public"
......@@ -7,7 +7,7 @@ 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')
group, created = ShareGroup.objects.get_or_create(name='Public', last_update_by=creator)
group, created = ShareGroup.objects.get_or_create(name='Public', last_update_by=creator, managed_by_staff=True)
profiles = Profile.objects.all()
group.profiles.add(*profiles)
......
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