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:
parent
6de3a13ded
commit
752b0ffc4c
1 changed files with 2 additions and 0 deletions
|
@ -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()})
|
||||
|
|
Loading…
Reference in a new issue