I don't really understand your question (perhaps English isn't your first language), and I'm too tired to try to understand, but maybe one of the following will help:
http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods http://docs.djangoproject.com/en/dev/ref/models/fields/#filepathfield Perhaps if you attempt to explain your question more clearly, others will have a better idea of what you need. But hopefully one of the aforementioned links will help. On Feb 16, 4:17 pm, Carmelly <carme...@gmail.com> wrote: > My situation is this: I want to allow my users to upload multiple > userpics and then choose between them. So I have a Profile model with > an ImageField for the userpic. When users upload a file it is > displayed around the site as usual. When they upload a new file, that > file replaces their the "userpic" field in their Profile and is > displayed all over the site, but the old userpic is not overwritten on > disk. This is what we want. > > Now, if I display a page for the user with all the userpics they ever > uploaded and let them choose between them, how can I set the path in > the ImageField to the file the chose? I know there is a userpic.save() > method, but I'm not sure what to pass into it, or if this is even the > correct way to go about it. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---