old_contents: from django.db import models
  from datetime import datetime
  from django.core.validators import MaxValueValidator, MinValueValidator
  from django.utils.encoding import python_2_unicode_compatible
  
  
  @python_2_unicode_compatible
  class Project(models.Model):
      name = models.CharField(max_length=100)
      added = models.DateTimeField(default=datetime.now)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.name
  
      class Meta:
          ordering = ('name',)
  
  
  @python_2_unicode_compatible
  class Assessment(models.Model):
      name = models.CharField(max_length=100)
      project = models.ForeignKey(Project, on_delete=models.CASCADE)
      added = models.DateTimeField(default=datetime.now)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.name
  
      class Meta:
          ordering = ('name',)
  
  
  @python_2_unicode_compatible
  class Sh0t(models.Model):
      title = models.CharField(max_length=200)
      body = models.TextField(default="")
      assessment = models.ForeignKey(Assessment, null=True, on_delete=models.CASCADE)
      added = models.DateTimeField(default=datetime.now)
      severity = models.IntegerField(default=5, validators=[MinValueValidator(0), MaxValueValidator(5)])
  
      def __str__(self):  # __unicode__ on Python 2
          return self.title
  
      class Meta:
          ordering = ('title',)
  
  
  @python_2_unicode_compatible
  class Flag(models.Model):
      title = models.CharField(max_length=100)
      note = models.TextField(default="")
      assessment = models.ForeignKey(Assessment, null=True, on_delete=models.CASCADE)
      done = models.BooleanField(default=False)
      added = models.DateTimeField(default=datetime.now)
      order = models.IntegerField(default=1)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.title
  
      class Meta:
          ordering = ('title',)
  
  
  @python_2_unicode_compatible
  class Template(models.Model):
      name = models.CharField(max_length=100)
      body = models.TextField(default="")
      added = models.DateTimeField(default=datetime.now)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.name
  
      class Meta:
          ordering = ('name',)
  
  
new_contents: from django.db import models
  from datetime import datetime
  from django.core.validators import MaxValueValidator, MinValueValidator
  from django.utils.encoding import python_2_unicode_compatible
  
  
  @python_2_unicode_compatible
  class Project(models.Model):
      name = models.CharField(max_length=100)
      added = models.DateTimeField(default=datetime.now)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.name
  
      class Meta:
          ordering = ('name',)
  
  
  @python_2_unicode_compatible
  class Assessment(models.Model):
      name = models.CharField(max_length=100)
      project = models.ForeignKey(Project, on_delete=models.CASCADE)
      added = models.DateTimeField(default=datetime.now)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.name
  
      class Meta:
          ordering = ('name',)
  
  
  @python_2_unicode_compatible
  class Sh0t(models.Model):
      title = models.CharField(max_length=200)
      body = models.TextField(default="")
      assessment = models.ForeignKey(Assessment, null=True, on_delete=models.CASCADE)
      added = models.DateTimeField(default=datetime.now)
      severity = models.IntegerField(default=5, validators=[MinValueValidator(0), MaxValueValidator(5)])
  
      def __str__(self):  # __unicode__ on Python 2
          return self.title
  
      class Meta:
          ordering = ('severity','title',)
  
  
  @python_2_unicode_compatible
  class Flag(models.Model):
      title = models.CharField(max_length=100)
      note = models.TextField(default="")
      assessment = models.ForeignKey(Assessment, null=True, on_delete=models.CASCADE)
      done = models.BooleanField(default=False)
      added = models.DateTimeField(default=datetime.now)
      order = models.IntegerField(default=1)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.title
  
      class Meta:
          ordering = ('title',)
  
  
  @python_2_unicode_compatible
  class Template(models.Model):
      name = models.CharField(max_length=100)
      body = models.TextField(default="")
      added = models.DateTimeField(default=datetime.now)
  
      def __str__(self):  # __unicode__ on Python 2
          return self.name
  
      class Meta:
          ordering = ('name',)
  
  
subject: Change sort for shots (severity)