diff --git a/accountant/api/views/scheduled_operations.py b/accountant/api/views/scheduled_operations.py index d8d8e44..38b23a7 100644 --- a/accountant/api/views/scheduled_operations.py +++ b/accountant/api/views/scheduled_operations.py @@ -86,6 +86,8 @@ class ScheduledOperationListResource(Resource): scheduled_operation.reschedule(session) + session.flush() + return scheduled_operation, 201 @@ -155,6 +157,8 @@ class ScheduledOperationResource(Resource): scheduled_operation.reschedule(session) + session.flush() + return scheduled_operation