# HG changeset patch # User ymh # Date 1353942314 -3600 # Node ID caa3a2695cb7710bbab7970ebd0e0b28eea140a9 # Parent ac241ce310fd21c281588f5de7b1e9664032e64f allow filtering on contents title diff -r ac241ce310fd -r caa3a2695cb7 src/ldt/ldt/api/ldt/resources/content.py --- a/src/ldt/ldt/api/ldt/resources/content.py Sat Nov 24 15:16:00 2012 +0100 +++ b/src/ldt/ldt/api/ldt/resources/content.py Mon Nov 26 16:05:14 2012 +0100 @@ -1,6 +1,6 @@ from django.conf.urls.defaults import url from ldt.ldt_utils.models import Content, Media -from tastypie.resources import Bundle, ModelResource, ALL_WITH_RELATIONS +from tastypie.resources import Bundle, ModelResource, ALL_WITH_RELATIONS, ALL from tastypie import fields from ldt.indexation import get_results_list from itertools import groupby @@ -29,6 +29,7 @@ queryset = Content.objects.select_related('front_project').all() filtering = { 'tags' : ALL_WITH_RELATIONS, + 'title' : ALL, } def get_object_list(self, request):