8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 04:43:10 +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
parent 6de3a13ded
commit 752b0ffc4c

View file

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