Hi, I'm trying to make a custom upload field that generate the "upload_to" option automatically, based on the app, model and field names and the primary key.
For example, having an app 'Album' with a model 'Picture' with a field 'pic' as the upload field, the path should be: album/picture/pic/1.jpg So far, I got the primary key renaming working. But I couldn't access the app and model names from the field __init__ method. Does anyone knows how to get the names? Regards. Enrico --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---