Scott Baker | d219e1e | 2014-05-20 12:04:25 -0700 | [diff] [blame] | 1 | from core.models import User,Site,Service,SingletonModel,PlCoreBase, Slice |
| 2 | import os |
| 3 | from django.db import models |
| 4 | from django.forms.models import model_to_dict |
| 5 | |
| 6 | # Create your models here. |
| 7 | |
| 8 | class CassandraService(SingletonModel,Service): |
| 9 | class Meta: |
| 10 | app_label = "cassandra" |
| 11 | verbose_name = "Cassandra Service" |
| 12 | |
| 13 | clusterSize = models.PositiveIntegerField(default=1) |
| 14 | replicationFactor = models.PositiveIntegerField(default=1) |
| 15 | |
| 16 | def __unicode__(self): return u'Cassandra Service' |
| 17 | |