Skip to content

Commit

Permalink
Merge pull request #2099 from gtech-mulearn/dev-server
Browse files Browse the repository at this point in the history
Dev server
  • Loading branch information
jelanmathewjames authored Jun 20, 2024
2 parents 60d0589 + 0922337 commit 1ee4d65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/launchpad/launchpad_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def get(self, request):
queryset=UserRoleLink.objects.filter(verified=True, role__title__in=allowed_levels).select_related('role')
)
).filter(
user_organization_link_user__id__in=UserOrganizationLink.objects.filter(
Q(user_organization_link_user__id__in=UserOrganizationLink.objects.filter(
org__org_type__in=allowed_org_types
).values("id")
).values("id")) | Q(user_organization_link_user__id__isnull=True)
).annotate(
org=F("user_organization_link_user__org__title"),
district_name=F("user_organization_link_user__org__district__name"),
Expand Down
6 changes: 3 additions & 3 deletions api/launchpad/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def get_rank(self, obj):


class LaunchpadParticipantsSerializer(serializers.ModelSerializer):
org = serializers.CharField()
district_name = serializers.CharField()
state = serializers.CharField()
org = serializers.CharField(allow_null=True, allow_blank=True)
district_name = serializers.CharField(allow_null=True, allow_blank=True)
state = serializers.CharField(allow_null=True, allow_blank=True)
level = serializers.CharField()

class Meta:
Expand Down

0 comments on commit 1ee4d65

Please sign in to comment.