Skip to content

Commit

Permalink
Merge pull request #1538 from the-deep/feature/add-filter-in-regionlist
Browse files Browse the repository at this point in the history
Add is_published filter in regionlist
  • Loading branch information
subinasr authored Oct 24, 2024
2 parents 0e189e2 + c3cfa51 commit 410f737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/geo/filter_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RegionFilterSet(UserResourceFilterSet):

class Meta:
model = Region
fields = ['id', 'code', 'title', 'public', 'project',
fields = ['id', 'code', 'title', 'public', 'project', 'is_published',
'created_at', 'created_by', 'modified_at', 'modified_by']
filter_overrides = {
models.CharField: {
Expand Down
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5875,7 +5875,7 @@ type Query {
notifications(timestamp: DateTime, timestampLte: DateTime, timestampGte: DateTime, isPending: Boolean, notificationType: NotificationTypeEnum, status: NotificationStatusEnum, page: Int = 1, ordering: String, pageSize: Int): NotificationListType
assignments(project: ID, isDone: Boolean, page: Int = 1, ordering: String, pageSize: Int): AssignmentListType
region(id: ID!): RegionDetailType
regions(id: Float, code: String, title: String, public: Boolean, project: [ID], createdAt: DateTime, createdBy: [ID], modifiedAt: DateTime, modifiedBy: [ID], createdAt_Lt: Date, createdAt_Gte: Date, modifiedAt_Lt: Date, modifiedAt_Gt: Date, excludeProject: [ID!], search: String, page: Int = 1, ordering: String, pageSize: Int): RegionListType
regions(id: Float, code: String, title: String, public: Boolean, project: [ID], isPublished: Boolean, createdAt: DateTime, createdBy: [ID], modifiedAt: DateTime, modifiedBy: [ID], createdAt_Lt: Date, createdAt_Gte: Date, modifiedAt_Lt: Date, modifiedAt_Gt: Date, excludeProject: [ID!], search: String, page: Int = 1, ordering: String, pageSize: Int): RegionListType
organization(id: ID!): OrganizationType
organizations(id: Float, verified: Boolean, search: String, usedInProjectByLead: ID, usedInProjectByAssesment: ID, ordering: [OrganizationOrderingEnum!], page: Int = 1, pageSize: Int): OrganizationListType
publicOrganizations(id: Float, verified: Boolean, search: String, usedInProjectByLead: ID, usedInProjectByAssesment: ID, ordering: [OrganizationOrderingEnum!], page: Int = 1, pageSize: Int): PublicOrganizationListObjectType
Expand Down

0 comments on commit 410f737

Please sign in to comment.