Skip to content

Commit

Permalink
Merge pull request #59 from openimis/develop
Browse files Browse the repository at this point in the history
MERGING develop into release/24.04
  • Loading branch information
delcroip committed Apr 23, 2024
2 parents 8b4e0a0 + 2303a2e commit 4d53beb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions medical/gql_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from graphene_django import DjangoObjectType
from .models import Service, ServiceItem, ServiceService


class ServiceGQLType(DjangoObjectType):
attachments_count = graphene.Int()
client_mutation_id = graphene.String()
Expand All @@ -22,10 +23,10 @@ class Meta:
}
connection_class = ExtendedConnection

@classmethod
def get_queryset(cls, queryset, info):
service_ids = Service.get_queryset(queryset, info).values('uuid').all()
return Service.objects.filter(uuid__in=service_ids)
# @classmethod
# def get_queryset(cls, queryset, info):
# service_ids = Service.get_queryset(queryset, info).values('uuid').all()
# return Service.objects.filter(uuid__in=service_ids)


class ServiceItemGQLType(DjangoObjectType):
Expand All @@ -35,4 +36,4 @@ class Meta:

class ServiceServiceGQLType(DjangoObjectType):
class Meta:
model = ServiceService
model = ServiceService

0 comments on commit 4d53beb

Please sign in to comment.