class Meta: #aid_type is used as dummy queryset = AidType.objects.all() resource_name = 'indicator-country-data' include_resource_uri = True cache = NoTransformCache() allowed_methods = ['get']
class Meta: queryset = Activity.objects.all() resource_name = 'activity-list' max_limit = 100 excludes = ['date_created'] serializer = CsvSerializer() ordering = [ 'start_actual', 'start_planned', 'end_actual', 'end_planned', 'sectors', 'total_budget', 'activity_status' ] filtering = { 'id': ('iregex', 'in'), 'iati_identifier': 'exact', 'start_planned': ALL, #'start_actual': ALL, 'end_planned': ALL, 'end_actual': ALL, 'total_budget': ALL, 'activity_scope': ('exact', 'in'), 'sectors': ('exact', 'in'), 'regions': ALL_WITH_RELATIONS, 'countries': ALL_WITH_RELATIONS, 'reporting_organisation': ('exact', 'in'), 'participating_organisation': ALL, 'participating_organisations': ALL_WITH_RELATIONS, 'results': ALL_WITH_RELATIONS } cache = NoTransformCache() allowed_methods = ['get'] paginator_class = NoCountPaginator
class Meta: queryset = Activity.objects.all() resource_name = 'activities' max_limit = 1000 serializer = CsvSerializer() excludes = ['date_created'] ordering = [ 'start_actual', 'start_planned', 'end_actual', 'end_planned', 'sectors', 'total_budget' ] filtering = { 'id': 'in', 'iati_identifier': 'exact', 'start_planned': ALL, 'start_actual': ALL, 'end_planned': ALL, 'end_actual': ALL, 'total_budget': ALL, 'sectors': ('exact', 'in'), 'regions': ('exact', 'in'), 'countries': ('exact', 'in'), 'reporting_organisation': ('exact', 'in'), 'documents': ALL_WITH_RELATIONS, 'results': ALL_WITH_RELATIONS } cache = NoTransformCache() paginator_class = NoCountPaginator
class Meta: #aid_type is used as dummy queryset = AidType.objects.all() resource_name = 'activity-aggregate-any-names' include_resource_uri = True cache = NoTransformCache() allowed_methods = ['get']
class Meta: queryset = Activity.objects.all() resource_name = 'activities' max_limit = 100 serializer = Serializer(formats=['xml', 'json']) excludes = ['date_created', 'id'] ordering = [ 'start_actual', 'start_planned', 'end_actual', 'end_planned', 'activity_sectors', 'statistics', 'last_updated_datetime' ] filtering = {'iati_identifier': ALL} cache = NoTransformCache()
class Meta: queryset = Activity.objects.none() resource_name = 'activity-aggregate-any' include_resource_uri = True cache = NoTransformCache() allowed_methods = ['get']