sehmaschine/django-filebrowser — pull request #46 by hcarvalhoalves (2011-11-13 02:35:03+00:00)
Title: Refactored versions functionality to filebrowser.versions

* Using the default site from filebrowser.versions.sites is functionality equivalent to using the old one
* Using the default site from filebrowser.sites is a stripped down version without versions and admin thumbnails
* Both admin interfaces seem fully functional
* filebrowser.tests passing
* filebrowser.versions.tests.sites are failing, tests URL resolver don't work after moving the site to a different module.
* FileBrowserField is now a base class without previews, VersionFileBrowserField provided

I couldn't figure out how the test suite in sites.py actually work. They stopped working after moving the site to a `versions` module, the tests apparently can't resolve the installed site and fail with a KeyError on APP_NAME. The admin is fully functional though.

Can you help me making those tests pass? Also, tests for FileBrowserField are needed.