Commit ed351d66 by Dudás Ádám

vm: add tags to nodes and VMs

parent 91c65106
......@@ -224,6 +224,7 @@ THIRD_PARTY_APPS = (
'crispy_forms',
'djcelery',
'sizefield',
'taggit',
)
# Apps specific for this project go here.
......
......@@ -14,6 +14,7 @@ from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from model_utils.models import TimeStampedModel
from taggit.managers import TaggableManager
from common.models import ActivityModel, activitycontextimpl
from firewall.models import Vlan, Host
......@@ -76,6 +77,7 @@ class VirtualMachineDescModel(BaseResourceConfigModel):
'Show boot device selection menu on boot.'))
raw_data = TextField(verbose_name=_('raw_data'), blank=True, help_text=_(
'Additional libvirt domain parameters in XML format.'))
tags = TaggableManager()
class Meta:
abstract = True
......@@ -100,6 +102,7 @@ class Node(TimeStampedModel):
enabled = BooleanField(verbose_name=_('enabled'), default=False,
help_text=_('Indicates whether the node can '
'be used for hosting.'))
tags = TaggableManager()
class Meta:
permissions = ()
......
......@@ -7,7 +7,7 @@ django-crispy-forms==1.4.0
django-model-utils==1.4.0
django-sizefield==0.4
django-tables2==0.14.0
django-taggit==0.10a1
django-taggit==0.10
logutils==0.3.3
netaddr==0.7.10
South==0.8.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment