Hello,

I've used this advice:
http://groups.google.com/group/django-users/browse_thread/thread/
bb7f406bffd697f5/76f738315a6947eb?lnk=gst&q=admin
+thumbs&rnum=1#76f738315a6947eb
to add a thumbnail to the model's list page in admin.

I would like to also be able to display the thumb on the change form. 
I've gotten as far as adjusting /django/contrib/admin/templates/widget/
file.html from this:
{% trans "Currently:" %} <a href="{{ bound_field.original_url }}" > 
{{ bound_field.original_value|escape }} </a><br />
to this:
{% trans "Currently:" %} <img src="{{ bound_field.original_url }}" /> 
{{ bound_field.original_value|escape }} <br />

This gets me the full size image in the admin form but I really want 
the thumbnail. Plus it wrecks the code for anything but an image file. 
I guess I can squeeze the image with html if I have to.

What have others done?

Thanks.


--~--~---------~--~----~------------~-------~--~----~
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