blob: a249628dbd66d3b034dfefc346b582ba99759910 [file] [log] [blame]
Siobhan Tully4bc09f22013-04-10 21:15:21 -04001import os
2from django.db import models
Siobhan Tully30fd4292013-05-10 08:59:56 -04003from core.models import PlCoreBase
4from core.models import Site
5from core.models import DeploymentNetwork
Siobhan Tully4bc09f22013-04-10 21:15:21 -04006
7# Create your models here.
8
9class 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)