Fixed compatibility with Django version 1.5+

verify_exists has been deprecated on Django version 1.5. This fix just adds compatibility checking the Django version first.