From 1891654756b31aedce4d76e59c563aba91321670 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Tue, 16 Oct 2018 12:52:45 +0200 Subject: [PATCH] [API/Printer] Service needs number of pages --- api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/serializers.py b/api/serializers.py index 536414b8..b1b0f1f7 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -725,7 +725,7 @@ class PrintableJobSerializer(NamespacedHMSerializer): file = serializers.FileField(use_url=False) class Meta: model = printer.JobWithOptions - exclude = ('price', 'pages') + exclude = ('price',) extra_kwargs = { 'api_url': {'view_name': 'printablejobs-detail'} } @@ -736,7 +736,7 @@ class HistoryJobSerializer(NamespacedHMSerializer): file = serializers.FileField(use_url=False) class Meta: model = printer.JobWithOptions - exclude = ('price', 'pages') + exclude = ('price',) extra_kwargs = { 'api_url': {'view_name': 'historyjobs-detail'} }