8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-28 15:42:25 +00:00

[Printer] Populate printAs with request.user if None

This commit is contained in:
Maxime Bombar 2018-09-08 23:04:14 +02:00 committed by root
parent 0d2cce2488
commit 4552fcceea

View file

@ -52,6 +52,8 @@ def new_job(request):
job = job.save(commit=False) job = job.save(commit=False)
job.filename = filename job.filename = filename
job.user=request.user job.user=request.user
if job.printAs is None:
job.printAs = request.user
job.status='Printable' job.status='Printable'
# raise # raise
# raise ValidationError("'%(path)s'", code='path', params = {'path': request.FILES['form-%s-file' % i].temporary_file_path()}) # raise ValidationError("'%(path)s'", code='path', params = {'path': request.FILES['form-%s-file' % i].temporary_file_path()})