Browse Source

Corrige texto_upload_path para subpath nulo

pull/1847/head
Marcio Mazza 7 years ago
parent
commit
9c47b8540f
  1. 3
      sapl/utils.py

3
sapl/utils.py

@ -550,6 +550,9 @@ def texto_upload_path(instance, filename, subpath='', pk_first=False):
str_path = ('./sapl/%(prefix)s/%(model_name)s/' str_path = ('./sapl/%(prefix)s/%(model_name)s/'
'%(pk)s/%(subpath)s/%(filename)s') '%(pk)s/%(subpath)s/%(filename)s')
if subpath is None:
subpath = '_'
path = str_path %\ path = str_path %\
{ {
'prefix': prefix, 'prefix': prefix,

Loading…
Cancel
Save