Here is my basic model: class Type(models.Model): name = models.CharField() description = models.TextField(blank=True) created = models.DateTimeField(auto_now_add) modified = models.DateTimeField(auto_now)
class Media(models.Model): name = models.CharField() description = models.TextField(blank=True) media_type = models.ForeignKey(Type) path_to_file = models.FileField(upload_to='/%s/%Y/%m/%d/ %s media_type') created = models.DateTimeField(auto_now_add) modified = models.DateTimeField(auto_now) slug = models.SlugField(prepopulate_from=("name",)) I know I can't do what I am trying to do in the Media class, but how can I do this? How can I name that folder from the media_type fieldname? Lemme know. 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 -~----------~----~----~----~------~----~------~--~---