toastdriven/django-tastypie — pull request #382 by joshbohde (2012-02-21 01:22:01+00:00)
Title: POST/PUT deeply nested data

This is some initial work on dealing with #307.

The first issue when sending deeply nested data is that a `ToMany`s on a related resource would send a list to the orm for filtering, throwing a `TypeError`. This patch catches that, and will attempt a pk lookup instead.

Next, any `ToMany`s that are nested would not be saved in `save_m2m`. This is handled via another `hydrate_m2m` + `save_m2m` after saving each object in the `ToMany`

I'm opening up this pull request now for review and ideas for more test cases.