old_contents: from import_export import fields, resources
  
  from .models import Review
  
  
  class ReviewResource(resources.ModelResource):
  
      reviewer = fields.Field(
          attribute='reviewer__email',
          readonly=True,
      )
      proposal = fields.Field(
          attribute='proposal__title',
          readonly=True,
      )
  
      class Meta:
          model = Review
          fields = [
              'id', 'reviewer', 'proposal', 'stage', 'vote', 'comment',
              'discloses_comment', 'appropriateness',
          ]
          export_order = fields
  
      def dehydrate_discloses_comment(self, instance):
          return int(instance.discloses_comment)
  
      def dehydrate_appropriateness(self, instance):
          return int(instance.appropriateness)
  
new_contents: from import_export import fields, resources
  
  from .models import Review
  
  
  class ReviewResource(resources.ModelResource):
  
      reviewer = fields.Field(
          attribute='reviewer__email',
          readonly=True,
      )
      proposal = fields.Field(
          attribute='proposal__title',
          readonly=True,
      )
      stage = fields.Field(
          attribute='stage',
          readonly=True,
      )
      vote = fields.Field(
          attribute='vote',
          readonly=True,
      )
      comment = fields.Field(
          attribute='comment',
          readonly=True,
      )
      discloses_comment = fields.Field(
          attribute='discloses_comment',
          readonly=True,
      )
  
      class Meta:
          model = Review
          fields = [
              'id', 'reviewer', 'proposal', 'stage', 'vote', 'comment',
              'discloses_comment', 'appropriateness',
          ]
          export_order = fields
  
      def dehydrate_discloses_comment(self, instance):
          return int(instance.discloses_comment)
  
      def dehydrate_appropriateness(self, instance):
          return int(instance.appropriateness)
  
subject: Mark fields except appropriateness as readonly