sehmaschine/django-filebrowser — Issue #59: Convert FileObject to FieldFile
Author: mattots
Created: 2011-12-12 15:08:33+00:00
State: open

I'm trying to use easy-thumbnails with django-filebrowser. In my model I have a FileBrowseField. Then in my template I'm loading the thumbnail template tag and passing the file tot it. Trouble is, FileBrowseField returns a FileObject, whereas thumbnail expects a FieldFile. (Or something like that - I'm a bit new to all this).

Is there a simple way to do this - allow an image to be added via a FileBrowseField in admin but return a conventional File object (not a FileObject!) in the template?