Add migration
This commit is contained in:
parent
fc7f40d17a
commit
2ec2aa8128
1 changed files with 21 additions and 0 deletions
21
uncloud_vm/migrations/0002_vmproduct_owner.py
Normal file
21
uncloud_vm/migrations/0002_vmproduct_owner.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 3.1.4 on 2021-04-15 11:29
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('uncloud_vm', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='vmproduct',
|
||||
name='owner',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue