Skip to content

Instantly share code, notes, and snippets.

@bogsio
Created July 25, 2014 11:18
Show Gist options
  • Save bogsio/4ca4f03a01a0e29dbc66 to your computer and use it in GitHub Desktop.
Save bogsio/4ca4f03a01a0e29dbc66 to your computer and use it in GitHub Desktop.
TPT3 - adding toMany
# ...
class TodoListResource(ModelResource):
item_urls = fields.ToManyField('todolist.api.TodoItemResource', attribute='items')
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment