Skip to content

Instantly share code, notes, and snippets.

@byroot
Created May 14, 2011 08:28
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 byroot/972040 to your computer and use it in GitHub Desktop.
Save byroot/972040 to your computer and use it in GitHub Desktop.
class FormDeclaration(models.Model):
form_fields = JSONField()
f = FormDeclaration()
f.form_fields = [
{'name': 'foo', 'type': 'TextField'}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment