blob: 9271268e33b5d1a98a37b7e6724bf549b0f96d54 [file] [log] [blame]
import os
from django.db import models
from core.models import PlCoreBase
from core.models import Site,Deployment
from core.models import Tag
from django.contrib.contenttypes import generic
# Create your models here.
class Node(PlCoreBase):
name = models.CharField(max_length=200, unique=True, help_text="Name of the Node")
site = models.ForeignKey(Site, related_name='nodes')
deployment = models.ForeignKey(Deployment, related_name='nodes')
tags = generic.GenericRelation(Tag)
def __unicode__(self): return u'%s' % (self.name)