fix for Django 1.5 for json serialization