filepicker / filepicker-django

A django plugin to make integrating with Filepicker.io even easier
Other
93 stars 29 forks source link

Allow configuration of filepicker.js API version #11

Closed jonathan3 closed 12 years ago

jonathan3 commented 12 years ago

Version 0 is deprecated and I want to use version 1 in my projects. However there's no way to change this without digging into the code.

Initially I was just going to fork the project, make the change and use it for ourselves (see first commit), but then I realised it might be better if I made a few more changes so it's more configurable in the future (see second commit). I've left version 0 as the default for backwards compatibility.

I also slimmed down that if statement in the same file to a simple getattr().

brettcvz commented 12 years ago

LGTM - thank you for the pull request!