Skip to content

Commit 6494336

Browse files
committed
Remove comments from proposal list api
1 parent c07543d commit 6494336

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

junction/proposals/serializers.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,13 @@ class Meta:
4343

4444
class ProposalListSerializer(BaseProposalSerializer):
4545

46-
comments = serializers.SerializerMethodField()
47-
48-
def get_comments(self, proposal):
49-
qset = ProposalComment.objects.filter(proposal=proposal, private=False, reviewer=False)
50-
s_comments = ProposalCommentSerializer(qset, many=True)
51-
return s_comments.data
52-
5346
def get_author(self, proposal):
5447
return proposal.author.username
5548

5649
class Meta:
5750
model = Proposal
5851
fields = ('id', 'title', 'author', 'slug', 'section', 'type', 'description', 'target_audience',
59-
'prerequisites', 'content_urls', 'speaker_info', 'speaker_links', 'comments')
52+
'prerequisites', 'content_urls', 'speaker_info', 'speaker_links')
6053

6154

6255
class ProposalFilterSerializer(serializers.Serializer):

0 commit comments

Comments
 (0)