Siobhan Tully | 4bc09f2 | 2013-04-10 21:15:21 -0400 | [diff] [blame] | 1 | import os |
| 2 | from django.db import models |
| 3 | from plstackapi.core.models import PlCoreBase |
| 4 | from plstackapi.core.models import Site |
| 5 | from plstackapi.core.models import DeploymentNetwork |
| 6 | |
| 7 | # Create your models here. |
| 8 | |
| 9 | class Node(PlCoreBase): |
| 10 | name = models.CharField(max_length=200, unique=True, help_text="Name of the Node") |
| 11 | site = models.ForeignKey(Site, related_name='nodes') |
| 12 | deploymentNetwork = models.ForeignKey(DeploymentNetwork, related_name='nodes') |
| 13 | |
| 14 | def __unicode__(self): return u'%s' % (self.name) |