Fix issue #103

Fix issue #103 
Tested with python 2.7 and Django 1.6/1.7.