Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9ef61e32
authored
May 08, 2019
by
Gazdag Péter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes
parent
ab5325d4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
recircle/image/models.py
+3
-2
recircle/recircle/settings.py
+1
-0
recircle/storage/models.py
+3
-2
recircle/template/models.py
+6
-6
No files found.
recircle/image/models.py
View file @
9ef61e32
...
...
@@ -5,6 +5,6 @@ class Disk():
"""A virtual disk.
"""
name
=
CharField
(
blank
=
True
,
max_length
=
100
,
verbose_name
=
_
(
"name"
),
help_text
=
_
(
"Name of the disk"
)
)
remote_ID
=
CharField
(
max_length
=
40
,
unique
=
True
,
verbose_name
=
_
(
"remote_ID"
),
help_text
=
_
(
"ID, which helps access the disk"
)
)
name
=
models
.
CharField
(
blank
=
True
,
max_length
=
100
,
verbose_name
=
"name"
,
help_text
=
"Name of the disk"
)
remote_ID
=
models
.
CharField
(
max_length
=
40
,
unique
=
True
,
verbose_name
=
"remote_ID"
,
help_text
=
"ID, which helps access the disk"
)
\ No newline at end of file
recircle/recircle/settings.py
View file @
9ef61e32
...
...
@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles'
,
'rest_framework'
,
'djoser'
,
'background_task'
,
]
MIDDLEWARE
=
[
...
...
recircle/storage/models.py
View file @
9ef61e32
...
...
@@ -6,6 +6,6 @@ class DataStore():
"""Collection of virtual disks.
"""
name
=
CharField
(
max_length
=
100
,
unique
=
True
,
verbose_name
=
_
(
'name'
),
help_text
=
_
(
"Name of the data store."
)
)
remote_ID
=
CharField
(
max_length
=
40
,
unique
=
True
,
verbose_name
=
_
(
"remote_ID"
),
help_text
=
_
(
"ID, which helps access the data store."
)
)
name
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
,
verbose_name
=
"name"
,
help_text
=
"Name of the data store."
)
remote_ID
=
models
.
CharField
(
max_length
=
40
,
unique
=
True
,
verbose_name
=
"remote_ID"
,
help_text
=
"ID, which helps access the data store."
)
#vm
\ No newline at end of file
recircle/template/models.py
View file @
9ef61e32
...
...
@@ -5,8 +5,8 @@ class InstanceTemplate():
"""Virtual machine template.
"""
name
=
CharField
(
max_length
=
100
,
verbose_name
=
_
(
'name'
),
help_text
=
_
(
'Human readable name of template.'
))
description
=
TextField
(
verbose_name
=
_
(
'description'
),
blank
=
True
,
help_text
=
_
(
"Description of the template."
))
owner
=
ForeignKey
(
User
)
remote_ID
=
CharField
(
max_length
=
40
,
unique
=
True
,
verbose_name
=
_
(
"remote_ID"
),
help_text
=
_
(
"ID, which helps access the template."
))
\ No newline at end of file
name
=
models
.
CharField
(
max_length
=
100
,
verbose_name
=
"name"
,
help_text
=
"Human readable name of template."
)
description
=
models
.
TextField
(
verbose_name
=
"description"
,
blank
=
True
,
help_text
=
"Description of the template."
)
#owner = models.ForeignKey(User)
remote_ID
=
models
.
CharField
(
max_length
=
40
,
unique
=
True
,
verbose_name
=
"remote_ID"
,
help_text
=
"ID, which helps access the template."
)
\ No newline at end of file
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