old_contents: from django.db import models
  from django.utils import timezone
  
  from .test_run import TestRun
  
  
  def run_file_dir(instance, filename):
      return 'runs/{}/{}'.format(instance.run.id, filename)
  
  
  class ResultFile(models.Model):
      name = models.CharField(max_length=1000)
      file = models.FileField(upload_to=run_file_dir, max_length=255)
      file_created_time = models.DateTimeField(default=timezone.now)
      file_byte_size = models.IntegerField(default=0)
      created_on = models.DateTimeField(auto_now_add=True)
  
      run = models.ForeignKey(TestRun, on_delete=models.CASCADE, related_name='files')
  
      def file_size(self):
          return '{} kb'.format(self.file_byte_size / 1024)
  
      class Meta:
          ordering = ['name']
  
      def __str__(self):
          return '{}'.format(self.name)
  
new_contents: from django.db import models
  from django.utils import timezone
  
  from .test_run import TestRun
  
  
  def run_file_dir(instance, filename):
      return 'runs/{}/{}'.format(instance.run.id, filename)
  
  
  class ResultFile(models.Model):
      name = models.CharField(max_length=1000)
      file = models.FileField(upload_to=run_file_dir, max_length=255)
      file_created_time = models.DateTimeField(default=timezone.now)
      file_byte_size = models.IntegerField(default=0)
      created_on = models.DateTimeField(auto_now_add=True)
  
      run = models.ForeignKey(TestRun, on_delete=models.CASCADE, related_name='files')
  
      def file_size(self):
          return '{:.2f} kb'.format(self.file_byte_size / 1024)
  
      class Meta:
          ordering = ['name']
  
      def __str__(self):
          return '{}'.format(self.name)
  
subject: update file size format.