From 000fa7fcd2f3f8ce54be3f8cd506bcb0578adb9f Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 24 May 2016 08:42:01 +0200 Subject: [PATCH] Fix model inheritance. --- accountant/api/views/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accountant/api/views/models.py b/accountant/api/views/models.py index 7df9f51..26ee2f5 100644 --- a/accountant/api/views/models.py +++ b/accountant/api/views/models.py @@ -138,7 +138,7 @@ operation_model = api.model('Operation', { description='Canceled status of the operation (for a scheduled one)') }) -operation_with_sold_model = api.inherit( +operation_with_sold_model = api.clone( 'OperationWithSold', operation_model, { 'sold': fields.Float( readonly=True,