Hey all, I wonder how can I do something like this:
class Author(models.Model): first_name = models.CharField(maxlength=30) headshot = models.ImageField(upload_to='media/' + self.first_name.__str__()) Of course this does not work, but I need to upload to a dynamically specified path depending on some other attribute of the model.. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---