Skip to content

Commit

Permalink
Update lead filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
sudan45 committed Nov 22, 2024
1 parent e13f23f commit c2e53e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/lead/filter_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,15 +556,15 @@ 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
fields = [
'lead',
'page_number',
'exclude_attachment_ids',
'exclude_with_entries'
'exclude_lead_with_no_entries'
]

def filter_exclude_lead_attachment_ids(self, qs, _, value):
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2e53e4

Please sign in to comment.