diff --git a/apps/lead/filter_set.py b/apps/lead/filter_set.py index b2fbb67d79..d312d85ca1 100644 --- a/apps/lead/filter_set.py +++ b/apps/lead/filter_set.py @@ -556,7 +556,7 @@ def filter_title(self, qs, name, value): class LeadPreviewAttachmentGQFilterSet(UserResourceGqlFilterSet): type = MultipleInputFilter(LeadPreviewAttachmentTypeEnum, field_name='type') exclude_attachment_ids = IDListFilter(method='filter_exclude_lead_attachment_ids') - exclude_with_entries = django_filters.BooleanFilter(method='filter_exclude_with_entries') + exclude_lead_with_no_entries = django_filters.BooleanFilter(method='filter_exclude_with_entries') class Meta: model = LeadPreviewAttachment @@ -564,7 +564,7 @@ class Meta: 'lead', 'page_number', 'exclude_attachment_ids', - 'exclude_with_entries' + 'exclude_lead_with_no_entries' ] def filter_exclude_lead_attachment_ids(self, qs, _, value): @@ -573,7 +573,7 @@ def filter_exclude_lead_attachment_ids(self, qs, _, value): return qs return qs - def filter_exclude_with_entries(self, qs, _, value): + def filter_exclude_lead_with_no_entries(self, qs, _, value): if value: qs = qs.exclude(lead__entry__isnull=False) return qs diff --git a/schema.graphql b/schema.graphql index d9332f5b29..9792d0067d 100644 --- a/schema.graphql +++ b/schema.graphql @@ -5397,7 +5397,7 @@ type ProjectDetailType { leadGroups(createdAt: DateTime, createdAtGte: DateTime, createdAtLte: DateTime, modifiedAt: DateTime, modifiedAtGte: DateTime, modifiedAtLte: DateTime, createdBy: [ID!], modifiedBy: [ID!], search: String, page: Int = 1, ordering: String, pageSize: Int): LeadGroupListType emmEntities(name: String, page: Int = 1, ordering: String, pageSize: Int): EmmEntityListType leadEmmTriggers(lead: ID, emmKeyword: String, emmRiskFactor: String, count: Int, page: Int = 1, ordering: String, pageSize: Int): LeadEmmTriggerListType - leadPreviewAttachments(lead: ID, pageNumber: Int, excludeAttachmentIds: [ID!], excludeWithEntries: Boolean, createdAt: DateTime, createdAtGte: DateTime, createdAtLte: DateTime, modifiedAt: DateTime, modifiedAtGte: DateTime, modifiedAtLte: DateTime, createdBy: [ID!], modifiedBy: [ID!], type: [LeadPreviewAttachmentTypeEnum!], page: Int = 1, ordering: String, pageSize: Int): LeadPreviewAttachmentListType + leadPreviewAttachments(lead: ID, pageNumber: Int, excludeAttachmentIds: [ID!], excludeLeadWithNoEntries: Boolean, createdAt: DateTime, createdAtGte: DateTime, createdAtLte: DateTime, modifiedAt: DateTime, modifiedAtGte: DateTime, modifiedAtLte: DateTime, createdBy: [ID!], modifiedBy: [ID!], type: [LeadPreviewAttachmentTypeEnum!], page: Int = 1, ordering: String, pageSize: Int): LeadPreviewAttachmentListType emmKeywords: [EmmKeyWordType!] emmRiskFactors: [EmmKeyRiskFactorType!] userSavedLeadFilter: UserSavedLeadFilterType