mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-01 09:02:26 +00:00
[Printer] Populate printAs with request.user if None
This commit is contained in:
parent
0d2cce2488
commit
4552fcceea
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