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.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. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/68a854ff-771e-4b03-9236-0c7da1b5616f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.