Created
July 25, 2014 11:18
-
-
Save bogsio/4ca4f03a01a0e29dbc66 to your computer and use it in GitHub Desktop.
TPT3 - adding toMany
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
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