Created
May 20, 2014 21:50
-
-
Save jmwenda/f09866627647e852afc2 to your computer and use it in GitHub Desktop.
This file contains 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 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