For a list display, it can be very simple. Write a method within the model that returns an "img" html tag, and use the "allow_tags" decorator on that method (just like you would for short_description). Then add that method to your list_display variable in Admin. I did this for thumbnails.
I haven't looked at editing individual objects. If you need more functionality you may want to use the filebrowser extension. -rob On Apr 4, 6:06 am, "brian corrigan" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a django model and want to include an image field. Is there a > way of displaying this field in the admin templates as an image (not > the string path of the image) or do I have to write my own template > for that? > > Cheers > > Brian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---