def post(self, request, relation_id, app_obj, action_obj_pk=None, *args, **kwargs):
        objects_order  = request.POST.getlist('action_objects_order[]')
        order = 1
        for object_id in objects_order:
            object_pk = object_id.split('action-object-')[1]
            obj = self.get_object(object_pk)
            try:
                setattr(obj, self.sortable_field, order)
            except __HOLE__:
                raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
                                    {'msg': MESSAGES.get('default_error', "")})
            obj.save()
            order += 1
            
        return self.render_to_response_with_refresh(relation_id,
                                                    app_obj,
                                                    msg=MESSAGES.get('item_edit_success', ''))
dataset/ETHPy150Open ionyse/ionyweb/ionyweb/administration/actions/views.py/ActionAdminOrderView.post