Commits

Lukasz Balcerzak committed d68be8d

Fixed problem with new guardian, object_pk and team & member removal

Comments (0)

Files changed (2)

projector/views/project_member.py

         perms_to_delete = UserObjectPermission.objects.filter(
             user = member,
             content_type = ContentType.objects.get_for_model(project),
-            object_id = project.id)
+            object_pk = project.id)
 
         if request.method == 'POST':
             # Confirm removal

projector/views/project_team.py

         perms_to_delete = GroupObjectPermission.objects.filter(
             group = group,
             content_type = ContentType.objects.get_for_model(project),
-            object_id = project.id)
+            object_pk = project.id)
 
         if request.method == 'POST':
             # Confirm removal