Archived
14 lines
446 B
Python
14 lines
446 B
Python
from tastypie.resources import ModelResource
|
|
from tastypie import fields
|
|
|
|
from dusken.models import Address
|
|
from dusken.authorization import MyDjangoAuthorization
|
|
from dusken.authentication import OAuth20Authentication
|
|
|
|
class AddressResource(ModelResource):
|
|
class Meta:
|
|
queryset = Address.objects.all()
|
|
resource_name = 'address'
|
|
authorization = MyDjangoAuthorization()
|
|
authentication = OAuth20Authentication()
|