add site settings model

This commit is contained in:
j 2010-02-27 16:19:06 +05:30
parent 7c9ef68b10
commit 24117a8774

View file

@ -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