Created
February 9, 2016 14:11
-
-
Save tomchristie/7d4fe4d5ae6d77fc3b3c to your computer and use it in GitHub Desktop.
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
doc = Document( | |
url='/', | |
title='Notes', | |
content={ | |
'notes': [ | |
Document( | |
url='/123/', | |
title='Note', | |
content={ | |
'description': 'Write the talk', | |
'complete': True, | |
'edit': Link(action='put', fields=[Field(name='description'), Field(name='complete')]), | |
'delete': Link(action='delete') | |
} | |
) | |
], | |
'add_note': Link(action='post', fields=[Field(name='description', required=True)]) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment