Skip to content

Instantly share code, notes, and snippets.

@jmwenda
Created May 20, 2014 21:50
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 jmwenda/f09866627647e852afc2 to your computer and use it in GitHub Desktop.
Save jmwenda/f09866627647e852afc2 to your computer and use it in GitHub Desktop.
class DevicerecordResource(ModelResource):
device = fields.ForeignKey(DeviceResource, 'device',full=True)
class Meta:
queryset = DeviceRecord.objects.all()
resource_name = 'devicerecord'
allowed_methods = ['get','put','post']
authentication = ApiKeyAuthentication()
authorization = Authorization()
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment