Improve the type detection and better support for django admin
Replaced hard coded mime lookup length with kwarg variable
Merge pull request #1 from jarus/improve_type_detection

Improve the type detection and better support for django admin