Server settings for svn commits

This commit is contained in:
2014-11-07 12:08:00 +01:00
committed by Campbell Barton
parent 5601ad297f
commit d2611cd979
6 changed files with 87 additions and 7 deletions

View File

@@ -1,11 +1,12 @@
from application import db
class Setting(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(256), unique=True, nullable=False)
description = db.Column(db.Text)
value = db.Column(db.String(100), nullable=False)
data_type = db.Column(db.String(128), nullable=False)
def __unicode__(self):
return self.name