Thanks for this, I was sure there were something to get access to the value
of a field !
On Monday, August 25, 2014 4:00:23 PM UTC+2, Collin Anderson wrote:
>
> Roughly something like this:
>
> def dir_file(analysis, file_name): # should live outside your model
> return '%s/%s' % (analysis.
Roughly something like this:
def dir_file(analysis, file_name): # should live outside your model
return '%s/%s' % (analysis.uuidDir, file_name)
then models.FileField(upload_to=dir_file)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
2 matches
Mail list logo