On Apr 8, 1:10 am, "oliver" <[EMAIL PROTECTED]> wrote:
> Hi Rob,
> would you mind posting the code you wrote as an example? Would be very
> helpful.
>
> thank!
> oli
I posted my first djangosnippet to show it:
http://www.djangosnippets.org/snippets/162/
HTH,
-rob
Hi Rob,
would you mind posting the code you wrote as an example? Would be very
helpful.
thank!
oli
On Apr 4, 5:26 pm, "oggie rob" <[EMAIL PROTECTED]> wrote:
> 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"
>
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
The django filebrowser admin extension may be close to what you're
looking for, it will display thumbnails of images on a filesystem
being browsed. I'm not sure how it integrates with the models though,
haven't tried it myself. You'll need PIL as pointed out on the
website.
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
--~--~-~--~~~---~--~~
5 matches
Mail list logo