diff --git a/accountant/api/views/operations.py b/accountant/api/views/operations.py index 4182bd9..fe17dd4 100644 --- a/accountant/api/views/operations.py +++ b/accountant/api/views/operations.py @@ -43,6 +43,8 @@ operation_with_sold_model = { 'canceled': fields.Boolean, } +operation_model = operation_with_sold_model + parser = reqparse.RequestParser() # Must use lambda because the parser passes other parameters badly interpreted # by dateutil.parser.parse diff --git a/accountant/api/views/scheduled_operations.py b/accountant/api/views/scheduled_operations.py index 0108bf0..3c2644d 100644 --- a/accountant/api/views/scheduled_operations.py +++ b/accountant/api/views/scheduled_operations.py @@ -17,7 +17,6 @@ import dateutil.parser from flask.ext.restful import Resource, fields, reqparse, marshal_with_field -from flask.ext.restplus import Resource, fields, marshal_with_field from sqlalchemy import true from sqlalchemy.orm.exc import NoResultFound