Move contact list to DB, part 1

This commit is contained in:
Zergling_man 2021-12-06 16:01:01 +11:00
parent e609f7a8d7
commit 5869a3f931

View File

@ -9,4 +9,12 @@ class Page(models.Model):
last_edited=models.DateField(auto_now=True)
def __str__(self):
return self.title
return self.title
class Contact(models.Model):
name=models.CharField(max_length=100)
url=models.CharField(max_length=500)
proto=models.CharField(max_length=100)
comment=models.CharField(max_length=100)
group=models.CharField(max_length=100)
priority=models.IntegerField()