Adding read_only to created_date and modified_date on attachments

remotes/origin/enhancement/email-actions
Jesús Espino 2014-08-29 12:42:23 +02:00
parent 1e48340c48
commit baf2812909
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class AttachmentSerializer(serializers.ModelSerializer):
fields = ("id", "project", "owner", "name", "attached_file", "size", "url", fields = ("id", "project", "owner", "name", "attached_file", "size", "url",
"description", "is_deprecated", "created_date", "modified_date", "description", "is_deprecated", "created_date", "modified_date",
"object_id", "order") "object_id", "order")
read_only_fields = ("owner",) read_only_fields = ("owner", "created_date", "modified_date")
def get_name(self, obj): def get_name(self, obj):
if obj.attached_file: if obj.attached_file: