How do I display only the file name, example RET_PREF_ANAPOLIS ..., removing the path arquivos/ ?
models.py:defuser_directory_path(instance,filename):ifinstance.tipo_arquivo.id==1:tipo='RET'elifinstance.tipo_arquivo.id==2:tipo='REM'filena...
asked by
16.12.2018 / 22:30