blob: fcc3a6afc86a795854b32ef984baea8763ca60a6 [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
Siobhan Tullybf1153a2013-05-27 20:53:48 -04005from core.models import Deployment
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')
Siobhan Tullybf1153a2013-05-27 20:53:48 -040012 deployment = models.ForeignKey(Deployment, related_name='nodes')
Siobhan Tully4bc09f22013-04-10 21:15:21 -040013
14 def __unicode__(self): return u'%s' % (self.name)