def _get_property_filters(user_property):
        if user_property in CHANGE_MESSAGES_FIELDS:
            query_filters = Q(change_messages__has_key=user_property)
            # to include CommCareUser creation from UI where a location can be assigned as a part of user creation
            # which is tracked only under "changes" and not "change messages"
            if user_property == LOCATION_FIELD:
                query_filters = query_filters | Q(changes__has_key='location_id')
        else:
            query_filters = Q(changes__has_key=user_property)
        return query_filters