Oh, thank you very much!
Ho could i forget about that :)

On 30 июн, 09:23, "Andrews Medina" <[EMAIL PROTECTED]> wrote:
> 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 Medinahttp://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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to