AdminImageWithThumbnailWidget fails because file path has no `name` attribute

Create issue
Issue #1501 new
Former user created an issue

commit 41a5af0 changed the call to sorl.thumbnail.shortcuts.get_thumbnail to pass the file path string rather than the file object itself. this causes an AttributeError ('unicode' object has no attribute 'name')

@calebsmith or anyone, is there a reason why the call was changed? If not necessary, can we take it out?

Comments (2)

  1. marconius

    If not necessary, can we take it out?

    to clarify ... I meant if we can revert to passing the file object itself.

  2. marconius

    Actually ... is there anything bad about deprecating AdminImageWithThumbnailWidget and using sorl tunmbnail's own AdminImageWidget?

  3. Log in to comment