toastdriven/django-tastypie — Issue #346: Better documentation for nested resources
Author: asmallteapot
Created: 2012-01-27 21:13:26+00:00
State: open

A chart explaining which TastyPie field to use for each type of Django ORM relationship would be incredibly helpful. Example:

### Relationship fields in Django and TastyPie

Django field
TastyPie field
Notes

ForeignKey on child
ToManyField on parent

Child models always need a publicly-exposed resource.

The child resource should be fully–referenced, eg myapp.api.ChildResource.

By default, only URLs to child resources are provided in output.
If you want to embed fields from the child resource, pass full=True.