if I have basic model for keeping track of client art:
class ArtEntry(models.Model):
client = models.CharField(max_length=50, choices=CLIENT_CHOICES)
job_number = models.CharField(max_length=30, unique=False, blank=False, null=False)
filename = models.CharField(max_length=64, unique=False, blank=False, null=False)
descriptor = models.CharField(max_length=64, unique=False, blank=True, null=True)
date = models.DateField(("Date"), default=datetime.date.today)
post_type = models.CharField(max_length=64, choices=POST_CHOICES)
and the last field of this model is a file upload field:
upload = models.FileField(upload_to='documents/*/**/***')
is it possible to populate the "upload_to" argument dynamically, so that * = the input 'client' data and ** = the input 'job_number' and * = the 'post_type' choice?