[patch] django.parts.media.photos no longer exists
There's a bad import in django/contrib/admin/templatetags/admin_list.py:
File "/usr/lib/python2.3/site-packages/django/contrib/admin/templatetags/admin_list.py" in items_for_result
155. from django.parts.media.photos import get_thumbnail_url
ImportError at /admin/pages/image/
No module named parts.media.photos
Attachments
(1)
- admin_list.diff
(1.1 KB
) - added by James Bennett 20 years ago.
- Use path instead of non-existent thumbnail as admin list repr of ImageField
Download all attachments as:
.zip
Change History
(6)
| Summary: |
[magic-removal] django.parts.media.photos no longer exists → [patch] django.parts.media.photos no longer exists
|
| Version: |
→ SVN
|
| Owner: |
changed from Adrian Holovaty to Jacob
|
| Status: |
new → assigned
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
django.parts.media.photoswas removed in [2124]I've hacked a fix for this before by copying code from http://code.djangoproject.com/browser/django/branches/magic-removal/django/parts/media/photos.py?rev=2123 into
django/contrib/admin/templatetags/admin_list.pyThis fixed my problem, but I wasn't using
get_thumbnail_urlfor anything. No idea if the fix was "correct". Jusy FYI for anyone who wants to take this on.