Close Bug #201: Fix comments

remotes/origin/enhancement/email-actions
David Barragán Merino 2014-03-10 10:03:45 +01:00
parent 449548696d
commit 0b2aefbb4b
3 changed files with 7 additions and 1 deletions

View File

@ -16,11 +16,16 @@ class IssueAttachmentSerializer(AttachmentSerializer):
class IssueSerializer(serializers.ModelSerializer):
tags = PickleField(required=False)
is_closed = serializers.Field(source="is_closed")
comment = serializers.SerializerMethodField("get_comment")
attachments = IssueAttachmentSerializer(many=True, read_only=True)
class Meta:
model = models.Issue
def get_comment(self, obj):
# NOTE: This method and field is necessary to historical comments work
return ""
class IssueNeighborsSerializer(NeighborsSerializerMixin, IssueSerializer):

View File

@ -20,7 +20,7 @@ class QuestionSerializer(serializers.ModelSerializer):
fields = ()
def get_comment(self, obj):
# TODO
# NOTE: This method and field is necessary to historical comments work
return ""
def get_questions_diff(self, old_question_version, new_question_version):

View File

@ -47,6 +47,7 @@ class UserStorySerializer(serializers.ModelSerializer):
return obj.get_total_points()
def get_comment(self, obj):
# NOTE: This method and field is necessary to historical comments work
return ""
def get_milestone_slug(self, obj):