Commit 29ed5533 by Szabolcs Gelencser

Remove unique identifiers from instancetemplate model

parent cb5e6c89
No preview for this file type
# -*- 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),
),
]
...@@ -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'
......
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