Created
March 29, 2012 20:49
-
-
Save bohde/2243635 to your computer and use it in GitHub Desktop.
example user resource
This file contains hidden or 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 UserResource(ModelResource): | |
api_key = fields.CharField('api_key__key', readonly=True) | |
class Meta: | |
queryset = User.objects.all() | |
authorization = Authorization() | |
resource_name = 'user' | |
# excludes = ['uuid','id','timestamp'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment