Skip to content

Commit

Permalink
switching to icontains for search
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Myers committed Jan 19, 2013
1 parent 065eb59 commit a87c77d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/src/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ JULY.GroupCollection = Backbone.Collection.extend({
offset: this.offset
};
if (this.query) {
p['name__istartswith'] = this.query;
p['name__icontains'] = this.query;
}
return jQuery.param(p);
},
Expand Down
4 changes: 2 additions & 2 deletions july/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Meta:
queryset = Location.objects.all()
allowed_methods = ['get']
filtering = {
'name': ['istartswith', 'exact'],
'name': ['istartswith', 'exact', 'icontains'],
}


Expand All @@ -58,7 +58,7 @@ class Meta:
queryset = Team.objects.all()
allowed_methods = ['get']
filtering = {
'name': ['istartswith', 'exact'],
'name': ['istartswith', 'exact', 'icontains'],
}


Expand Down

0 comments on commit a87c77d

Please sign in to comment.