diff --git a/program/models.py b/program/models.py index 1b6006012bbd1e0ed55cfaef48a5b2329cc810b9..08146fbbf6eb45d34cff820188b7e8ad43b019b2 100644 --- a/program/models.py +++ b/program/models.py @@ -214,6 +214,17 @@ class HostLink(Link): host = models.ForeignKey(Host, on_delete=models.CASCADE, related_name="links") +class LicenseType(models.Model): + name = models.CharField(max_length=16, help_text="Name of the license type") + type = models.CharField(max_length=64, help_text="Type of the license") + + class Meta: + ordering = ("name",) + + def __str__(self): + return self.type + + class Show(ModelWithImageFields, ModelWithCreatedUpdatedFields): predecessor = models.ForeignKey( "self",