Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ed351d66
authored
11 years ago
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: add tags to nodes and VMs
parent
91c65106
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
+5
-1
circle/circle/settings/base.py
+1
-0
circle/vm/models.py
+3
-0
requirements/base.txt
+1
-1
No files found.
circle/circle/settings/base.py
View file @
ed351d66
...
...
@@ -224,6 +224,7 @@ THIRD_PARTY_APPS = (
'crispy_forms'
,
'djcelery'
,
'sizefield'
,
'taggit'
,
)
# Apps specific for this project go here.
...
...
This diff is collapsed.
Click to expand it.
circle/vm/models.py
View file @
ed351d66
...
...
@@ -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
=
()
...
...
This diff is collapsed.
Click to expand it.
requirements/base.txt
View file @
ed351d66
...
...
@@ -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.10
a1
django-taggit==0.10
logutils==0.3.3
netaddr==0.7.10
South==0.8.1
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment