Skip to content
Snippets Groups Projects
Commit e18d1f16 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add LicenseType model

parent b01de0e7
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment