8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 08:23:12 +00:00

[API/Printer] Service needs number of pages

This commit is contained in:
Maxime Bombar 2018-10-16 12:52:45 +02:00 committed by root
parent 4acb118268
commit 1891654756

View file

@ -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'}
}