2007/6/29, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hello,
>
> I have a model with ImageField, i want to let users to upload their
> own images or select existing from a list (images are used for article
> icon). How can i do that (esecially in admin if this is possible)?
I can create a other model for images.
ex:
class Entry(models.Model):
title = model.CharField(maxlength=50)
image = models.ForeignKey(Image)
...
class Admin:
pass
class Image(models.Model):
picture = models.ImageField(upload_to='/images/')
class Admin:
pass
--
Andrews Medina
http://pyman.blogspot.com/
www.andrewsmedina.com.br
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---