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

Add LinkType model

parent 07813b06
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,17 @@ class Host(ModelWithImageFields, ModelWithCreatedUpdatedFields):
return self.name
class LinkType(models.Model):
name = models.CharField(max_length=16, help_text="Name of the link type")
type = models.CharField(max_length=32, help_text="Type of the link")
class Meta:
ordering = ("name",)
def __str__(self):
return self.type
class Link(models.Model):
type = models.CharField(max_length=32)
url = models.URLField()
......
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