fixed compatibility issue with django 1.5.1

hi

thank you for this library. here is a small fix for django 1.5.1

regards
steffen