def get_can_edit(self, obj):
view = self.context.get('<STR_LIT>')<EOL>request = copy(self.context.get('<STR_LIT>'))<EOL>request._method = '<STR_LIT>'<EOL>try:<EOL><INDENT>view.check_object_permissions(request, obj)<EOL><DEDENT>except (PermissionDenied, NotAuthenticated):<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
returns true if user has permission to edit, false otherwise