Skip to content

Commit

Permalink
Add owner to the read-only fields on issues, tasks, wiki pages and us…
Browse files Browse the repository at this point in the history
…er stories
  • Loading branch information
jespino committed Mar 1, 2016
1 parent 66b3e76 commit 7f7a092
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion taiga/projects/issues/serializers.py
Expand Up @@ -46,7 +46,7 @@ class IssueSerializer(WatchersValidator, VoteResourceSerializerMixin, EditableWa

class Meta:
model = models.Issue
read_only_fields = ('id', 'ref', 'created_date', 'modified_date')
read_only_fields = ('id', 'ref', 'created_date', 'modified_date', 'owner')

def get_comment(self, obj):
# NOTE: This method and field is necessary to historical comments work
Expand Down
2 changes: 1 addition & 1 deletion taiga/projects/tasks/serializers.py
Expand Up @@ -50,7 +50,7 @@ class TaskSerializer(WatchersValidator, VoteResourceSerializerMixin, EditableWat

class Meta:
model = models.Task
read_only_fields = ('id', 'ref', 'created_date', 'modified_date')
read_only_fields = ('id', 'ref', 'created_date', 'modified_date', 'owner')

def get_comment(self, obj):
return ""
Expand Down
2 changes: 1 addition & 1 deletion taiga/projects/userstories/serializers.py
Expand Up @@ -67,7 +67,7 @@ class UserStorySerializer(WatchersValidator, VoteResourceSerializerMixin, Editab
class Meta:
model = models.UserStory
depth = 0
read_only_fields = ('created_date', 'modified_date')
read_only_fields = ('created_date', 'modified_date', 'owner')

def get_total_points(self, obj):
return obj.get_total_points()
Expand Down
2 changes: 1 addition & 1 deletion taiga/projects/wiki/serializers.py
Expand Up @@ -30,7 +30,7 @@ class WikiPageSerializer(WatchersValidator, WatchedResourceModelSerializer, seri

class Meta:
model = models.WikiPage
read_only_fields = ('modified_date', 'created_date')
read_only_fields = ('modified_date', 'created_date', 'owner')

def get_html(self, obj):
return mdrender(obj.project, obj.content)
Expand Down

0 comments on commit 7f7a092

Please sign in to comment.