Passed
Pull Request — master (#44)
by Paolo
05:38
created

biosample.migrations.0004_auto_20190716_1628   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 22
dl 0
loc 32
rs 10
c 0
b 0
f 0
1
# -*- coding: utf-8 -*-
2
# Generated by Django 1.11.22 on 2019-07-16 14:28
3
from __future__ import unicode_literals
4
5
from django.db import migrations, models
6
import django.db.models.deletion
7
8
9
class Migration(migrations.Migration):
10
11
    dependencies = [
12
        ('contenttypes', '0002_remove_content_type_name'),
13
        ('biosample', '0003_submission_submissiondata'),
14
    ]
15
16
    operations = [
17
        migrations.RemoveField(
18
            model_name='submissiondata',
19
            name='name',
20
        ),
21
        migrations.AddField(
22
            model_name='submissiondata',
23
            name='content_type',
24
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
25
            preserve_default=False,
26
        ),
27
        migrations.AddField(
28
            model_name='submissiondata',
29
            name='object_id',
30
            field=models.PositiveIntegerField(default=1),
31
            preserve_default=False,
32
        ),
33
    ]
34