Skip to content

Instantly share code, notes, and snippets.

@hughes
Created April 30, 2013 14:18
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 hughes/5489035 to your computer and use it in GitHub Desktop.
Save hughes/5489035 to your computer and use it in GitHub Desktop.
class MyResource(ModelResource):
list_only_field = fields.CharField('list_this_attr', use_in='list')
detail_only_field = fields.CharField('detail_this_attr', use_in='detail')
both_field = fields.CharField('always_attr') # use_in='all' by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment