mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-08 09:55:05 +00:00
18 lines
542 B
Python
18 lines
542 B
Python
from tastypie.authentication import Authentication
|
|
from tastypie.authorization import Authorization
|
|
from spa.api.v1.BackboneCompatibleResource import BackboneCompatibleResource
|
|
from spa.models._Activity import _Activity
|
|
|
|
|
|
class ActivityResource(BackboneCompatibleResource):
|
|
|
|
class Meta:
|
|
queryset = _Activity.objects.all()
|
|
resource_name = 'activity'
|
|
authorization = Authorization()
|
|
authentication = Authentication()
|
|
always_return_data = True
|
|
|
|
def dehydrate(self, bundle):
|
|
|
|
return bundle |