Skip to content

Instantly share code, notes, and snippets.

@tomchristie
Created February 9, 2016 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomchristie/7d4fe4d5ae6d77fc3b3c to your computer and use it in GitHub Desktop.
Save tomchristie/7d4fe4d5ae6d77fc3b3c to your computer and use it in GitHub Desktop.
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