Reverted user owner_role back to admin_role

This commit is contained in:
Akita Noek
2016-04-16 18:24:26 -04:00
parent 6c50d0793d
commit 25303cf4ec

View File

@@ -126,12 +126,12 @@ def create_user_role(instance, **kwargs):
Role.objects.get( Role.objects.get(
content_type=ContentType.objects.get_for_model(instance), content_type=ContentType.objects.get_for_model(instance),
object_id=instance.id, object_id=instance.id,
name = 'Owner' name = 'User Admin'
) )
except Role.DoesNotExist: except Role.DoesNotExist:
role = Role.objects.create( role = Role.objects.create(
name = 'Owner', name = 'User Admin',
role_field='owner_role', role_field='admin_role',
content_object = instance, content_object = instance,
) )
role.members.add(instance) role.members.add(instance)