Initial changes to support the ClusertScope

This commit is contained in:
Roberto Rosario
2012-09-11 12:58:45 -04:00
parent 66f451b23f
commit ecb237ccd7
2 changed files with 59 additions and 8 deletions

View File

@@ -1,3 +1,19 @@
from django.db import models
from __future__ import absolute_import
# Create your models here.
from django.db import models
from django.utils.translation import ugettext_lazy as _
class ClusterSetting(models.Model):
"""
Define a setting entry common to all nodes in a cluster
"""
name = models.CharField(unique=True, max_length=64, verbose_name=_(u'name'))
value = models.TextField(blank=True, verbose_name=_(u'value'))
def __unicode__(self):
return self.name
class Meta:
verbose_name = _(u'cluster setting')
verbose_name_plural = _(u'cluster settings')