0884ec1bc2549bb04556acdaceebc096036761d8
[plstackapi.git] / planetstack / core / models / node.py
1 import os
2 from django.db import models
3 from core.models import PlCoreBase
4 from core.models import SiteDeployment
5 from core.models import Tag
6 from django.contrib.contenttypes import generic
7
8 # Create your models here.
9
10 class Node(PlCoreBase):
11     name = models.CharField(max_length=200, unique=True, help_text="Name of the Node")
12     site_deployment = models.ForeignKey(SiteDeployment, related_name='nodes')
13     tags = generic.GenericRelation(Tag)
14
15     def __unicode__(self):  return u'%s' % (self.name)
16