class Meta(CustomResourceMeta): authentication = AdminAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = ['get'] object_class = Domain resource_name = 'project_space_metadata' serializer = XFormInstanceSerializer(formats=['json'])
class AccountingResourceMeta(CustomResourceMeta): authentication = AdminAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = ['get'] include_resource_uri = False filtering = { 'last_modified': ['gt', 'gte', 'lt', 'lte'], 'date_updated': ['gt', 'gte', 'lt', 'lte'] }
class Meta(CustomResourceMeta): authentication = AdminAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = ['get'] queryset = MALTRow.objects.all().order_by('pk') resource_name = 'malt_tables' fields = ['id', 'month', 'user_id', 'username', 'email', 'user_type', 'domain_name', 'num_of_forms', 'app_id', 'device_id', 'is_app_deleted', 'wam', 'pam', 'use_threshold', 'experienced_threshold'] include_resource_uri = False filtering = { 'month': ['gt', 'gte', 'lt', 'lte'], 'domain_name': ['exact'] }
class Meta(CustomResourceMeta): authentication = AdminAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = ['get'] queryset = GIRRow.objects.all().order_by('pk') resource_name = 'gir_tables' fields = [ 'id', 'month', 'domain_name', 'country', 'sector', 'subsector', 'bu', 'self_service', 'test_domain', 'start_date', 'device_id', 'pam', 'wams_current', 'active_users', 'using_and_performing', 'not_performing', 'inactive_experienced', 'inactive_not_experienced', 'not_experienced', 'not_performing_not_experienced', 'active_ever', 'possibly_exp', 'ever_exp', 'exp_and_active_ever', 'active_in_span', 'eligible_forms', 'performance_threshold', 'experienced_threshold', ] include_resource_uri = False filtering = { 'month': ['gt', 'gte', 'lt', 'lte'], 'domain_name': ['exact'] }
class Meta(WebUserResource.Meta): authentication = AdminAuthentication() detail_allowed_methods = ['get'] list_allowed_methods = ['get']