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:
parent
4acb118268
commit
1891654756
1 changed files with 2 additions and 2 deletions
|
@ -725,7 +725,7 @@ class PrintableJobSerializer(NamespacedHMSerializer):
|
||||||
file = serializers.FileField(use_url=False)
|
file = serializers.FileField(use_url=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
model = printer.JobWithOptions
|
model = printer.JobWithOptions
|
||||||
exclude = ('price', 'pages')
|
exclude = ('price',)
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'api_url': {'view_name': 'printablejobs-detail'}
|
'api_url': {'view_name': 'printablejobs-detail'}
|
||||||
}
|
}
|
||||||
|
@ -736,7 +736,7 @@ class HistoryJobSerializer(NamespacedHMSerializer):
|
||||||
file = serializers.FileField(use_url=False)
|
file = serializers.FileField(use_url=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
model = printer.JobWithOptions
|
model = printer.JobWithOptions
|
||||||
exclude = ('price', 'pages')
|
exclude = ('price',)
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'api_url': {'view_name': 'historyjobs-detail'}
|
'api_url': {'view_name': 'historyjobs-detail'}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue