now works with Django 1.7, should work with 1.6 but not tested.