[Answered ]-'bool' object has no attribute 'has_header' when uploading via a FileField in my admin

2👍

Turns out it was an issue with Pinax. Updated to the latest git and everything works now!

0👍

Found this somewhere else on the net, the problem is in the HideSensitiveFieldsMiddleware and the way to work around it (for debug) is to just comment out that middleware like so

    "pinax.middleware.security.HideSensistiveFieldsMiddleware",
+#    "pinax.middleware.security.HideSensistiveFieldsMiddleware",

in your settings file, probably should leave that middleware in for non debug environments

Leave a comment