add site settings model
This commit is contained in:
parent
7c9ef68b10
commit
24117a8774
1 changed files with 8 additions and 0 deletions
|
@ -11,3 +11,11 @@ class Page(models.Model):
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
class SiteSettings(models.Model):
|
||||||
|
key = models.CharField(max_length=1024, unique=True)
|
||||||
|
value = models.TextField(blank=True)
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.key
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue