Fix bugs that caused automatic serialization to fail since 98bac695c.
Fix bugs that caused automatic serialization to fail since 98bac695c.

jgorset/django-respite,jgorset/django-respite,jgorset/django-respite