'filter by group if applicable by group functionality'

def apply_filters(self, request, applicable_filters):

    group = applicable_filters.pop('group', None)
    semi_filtered = super(ProfileResource, self).apply_filters(request, applicable_filters)
    if (group is not None):
        semi_filtered = semi_filtered.filter(groupmember__group__slug=group)
    return semi_filtered
