Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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
29ed5533
authored
Mar 13, 2018
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unique identifiers from instancetemplate model
parent
cb5e6c89
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
3 deletions
+33
-3
.idea/workspace.xml
+0
-0
circle/circle/db.sqlite3
+0
-0
circle/vm/migrations/0010_auto_20180313_1628.py
+30
-0
circle/vm/models/instance.py
+3
-3
No files found.
.idea/workspace.xml
View file @
29ed5533
This diff is collapsed.
Click to expand it.
circle/circle/db.sqlite3
View file @
29ed5533
No preview for this file type
circle/vm/migrations/0010_auto_20180313_1628.py
0 → 100644
View file @
29ed5533
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-03-13 15:28
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'vm'
,
'0009_auto_20180313_1453'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'instancetemplate'
,
name
=
'flavor_id'
,
field
=
models
.
CharField
(
max_length
=
100
),
),
migrations
.
AlterField
(
model_name
=
'instancetemplate'
,
name
=
'image_id'
,
field
=
models
.
CharField
(
max_length
=
100
),
),
migrations
.
AlterField
(
model_name
=
'instancetemplate'
,
name
=
'owner_id'
,
field
=
models
.
CharField
(
max_length
=
100
),
),
]
circle/vm/models/instance.py
View file @
29ed5533
...
@@ -142,9 +142,9 @@ class InstanceTemplate(TimeStampedModel):
...
@@ -142,9 +142,9 @@ class InstanceTemplate(TimeStampedModel):
# help_text=_('Disks which are to be mounted.'))
# help_text=_('Disks which are to be mounted.'))
# lease = ForeignKey(Lease, help_text=_("Preferred expiration periods."),
# lease = ForeignKey(Lease, help_text=_("Preferred expiration periods."),
# verbose_name=_("Lease"))
# verbose_name=_("Lease"))
image_id
=
CharField
(
blank
=
False
,
max_length
=
100
,
unique
=
True
)
image_id
=
CharField
(
blank
=
False
,
max_length
=
100
)
flavor_id
=
CharField
(
blank
=
False
,
max_length
=
100
,
unique
=
True
)
flavor_id
=
CharField
(
blank
=
False
,
max_length
=
100
)
owner_id
=
CharField
(
blank
=
False
,
max_length
=
100
,
unique
=
True
)
owner_id
=
CharField
(
blank
=
False
,
max_length
=
100
)
class
Meta
:
class
Meta
:
app_label
=
'vm'
app_label
=
'vm'
...
...
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