Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1087 from akatsoulas/enhance-filtering
Browse files Browse the repository at this point in the history
Allow filtering in v1 API based on mozillians.org username.
  • Loading branch information
akatsoulas committed Sep 16, 2015
2 parents e326c81 + 5bd0593 commit 914fff3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions remo/profiles/api/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def apply_filters(self, request, applicable_filters):
Q(userprofile__country__istartswith=query) |
Q(userprofile__region__istartswith=query) |
Q(userprofile__city__istartswith=query) |
Q(userprofile__mozillians_profile_url__icontains=query) |
Q(userprofile__functional_areas__name__istartswith=query))

base_object_list = base_object_list.filter(qset).distinct()
Expand Down

0 comments on commit 914fff3

Please sign in to comment.