Fixed issues with quotes added in Django-1.5