Browse Source

Corrige texto_upload_path para subpath nulo

pull/1837/head
Marcio Mazza 7 years ago
parent
commit
4b61c44747
  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/'
'%(pk)s/%(subpath)s/%(filename)s')
if subpath is None:
subpath = '_'
path = str_path %\
{
'prefix': prefix,

Loading…
Cancel
Save