- # -*- coding: utf-8 -*-
- from __future__ import unicode_literals
- from tastypie.resources import ModelResource
- from tastypie.authorization import Authorization
- from django.contrib.auth.models import Group
- '''
- '''
- class GroupResource(ModelResource):
- class Meta:
- queryset = Group.objects.all()
- authorization = Authorization()
- always_return_data = True
|