This repository was archived by the owner on Aug 12, 2020. It is now read-only.
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
TemplateSyntaxError at /admin/fileupload/picture/ Caught TypeError while rendering: coercing to Unicode: need string or buffer, FieldFile found #22
Closed
Description
django-jquery-file-upload works fine. the problem is in the admin panel using django 1.3.4 from EPEL on centos 6.3 minimal.
When I get inside the admin panel - into the 'picture' table when it's empty, - everything is fine. when there are rows - it return error 500. with DEBUG:
TemplateSyntaxError at /admin/fileupload/picture/
Caught TypeError while rendering: coercing to Unicode: need string or buffer, FieldFile found
the def unicode for the model is set to return self.file. which django dosen't accept.
when I am changing it to self.slug - everything works fine again in the admin panel but the jquery uploader stops working.
Metadata
Metadata
Assignees
Labels
No labels