Skip to content

Commit

Permalink
Merge pull request #1196 from gtech-mulearn/dev-server
Browse files Browse the repository at this point in the history
lc minor fix
  • Loading branch information
adnankattekaden authored Oct 6, 2023
2 parents a5dde93 + 1e55aa5 commit f34bf8c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api/dashboard/lc/dash_lc_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,20 +364,19 @@ class LearningCircleDataSerializer(serializers.ModelSerializer):
interest_group = serializers.SerializerMethodField()
college = serializers.SerializerMethodField()
learning_circle = serializers.SerializerMethodField()
students = serializers.SerializerMethodField()
total_no_of_users = serializers.SerializerMethodField()

class Meta:
model = LearningCircle
fields = [
"interest_group",
"college",
"learning_circle",
"students"
"total_no_of_users"
]

def get_students(self, obj):

None
def get_total_no_of_users(self, obj):
return UserCircleLink.objects.all().count()

def get_learning_circle(self, obj):
return LearningCircle.objects.all().count()
Expand Down

0 comments on commit f34bf8c

Please sign in to comment.