Coverage for apis_core/apis_metainfo/migrations/0002_auto_20220201_1241.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-22 07:51 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-22 07:51 +0000
1# Generated by Django 3.1.14 on 2022-02-01 12:41
3import django.db.models.deletion
4from django.db import migrations, models
7class Migration(migrations.Migration):
8 initial = True
10 dependencies = [
11 ("apis_metainfo", "0001_initial"),
12 ("apis_vocabularies", "0001_initial"),
13 ("auth", "0012_alter_user_first_name_max_length"),
14 ("contenttypes", "0002_remove_content_type_name"),
15 ]
17 operations = [
18 migrations.AddField(
19 model_name="text",
20 name="kind",
21 field=models.ForeignKey(
22 blank=True,
23 null=True,
24 on_delete=django.db.models.deletion.SET_NULL,
25 to="apis_vocabularies.texttype",
26 ),
27 ),
28 migrations.AddField(
29 model_name="text",
30 name="source",
31 field=models.ForeignKey(
32 blank=True,
33 null=True,
34 on_delete=django.db.models.deletion.SET_NULL,
35 to="apis_metainfo.source",
36 ),
37 ),
38 migrations.AddField(
39 model_name="rootobject",
40 name="self_content_type",
41 field=models.ForeignKey(
42 blank=True,
43 null=True,
44 on_delete=django.db.models.deletion.CASCADE,
45 to="contenttypes.contenttype",
46 ),
47 ),
48 migrations.AddField(
49 model_name="collection",
50 name="collection_type",
51 field=models.ForeignKey(
52 blank=True,
53 null=True,
54 on_delete=django.db.models.deletion.SET_NULL,
55 to="apis_vocabularies.collectiontype",
56 ),
57 ),
58 migrations.AddField(
59 model_name="collection",
60 name="groups_allowed",
61 field=models.ManyToManyField(to="auth.Group"),
62 ),
63 migrations.AddField(
64 model_name="collection",
65 name="parent_class",
66 field=models.ForeignKey(
67 blank=True,
68 null=True,
69 on_delete=django.db.models.deletion.CASCADE,
70 to="apis_metainfo.collection",
71 ),
72 ),
73 ]