1
1
# Generated by Django 4.2.5 on 2024-11-12 09:52
2
2
3
- from django .db import migrations
3
+ import ckeditor_uploader .fields
4
+ from django .db import migrations , models
4
5
5
6
6
7
class Migration (migrations .Migration ):
@@ -9,49 +10,46 @@ class Migration(migrations.Migration):
9
10
]
10
11
11
12
operations = [
12
- migrations .DeleteModel (
13
+ migrations .CreateModel (
13
14
name = "VisualWrittenInfluences" ,
15
+ fields = [
16
+ (
17
+ "id" ,
18
+ models .BigAutoField (
19
+ auto_created = True ,
20
+ primary_key = True ,
21
+ serialize = False ,
22
+ verbose_name = "ID" ,
23
+ ),
24
+ ),
25
+ ("title" , models .CharField (max_length = 255 )),
26
+ (
27
+ "films" ,
28
+ models .ManyToManyField (
29
+ blank = True , related_name = "vwis" , to = "mod_app.film"
30
+ ),
31
+ ),
32
+ (
33
+ "content" ,
34
+ ckeditor_uploader .fields .RichTextUploadingField (
35
+ blank = True , help_text = "Mentions are available here." , null = True
36
+ ),
37
+ ),
38
+ (
39
+ "bibliography" ,
40
+ models .ManyToManyField (
41
+ blank = True ,
42
+ help_text = "This field updates on save, and some items may not be visible immediately" ,
43
+ related_name = "vwis" ,
44
+ to = "mod_app.bibliographyitem" ,
45
+ ),
46
+ ),
47
+ ],
48
+ options = {
49
+ "verbose_name" : "Visual and Written Influences" ,
50
+ "verbose_name_plural" : "Visual and Written Influences" ,
51
+ },
14
52
),
15
- # migrations.CreateModel(
16
- # name="VisualWrittenInfluences",
17
- # fields=[
18
- # (
19
- # "id",
20
- # models.BigAutoField(
21
- # auto_created=True,
22
- # primary_key=True,
23
- # serialize=False,
24
- # verbose_name="ID",
25
- # ),
26
- # ),
27
- # ("title", models.CharField(max_length=255)),
28
- # (
29
- # "films",
30
- # models.ManyToManyField(
31
- # blank=True, related_name="vwis", to="mod_app.film"
32
- # ),
33
- # ),
34
- # (
35
- # "content",
36
- # ckeditor_uploader.fields.RichTextUploadingField(
37
- # blank=True, help_text="Mentions are available here.", null=True
38
- # ),
39
- # ),
40
- # (
41
- # "bibliography",
42
- # models.ManyToManyField(
43
- # blank=True,
44
- # help_text="This field updates on save, and some items may not be visible immediately",
45
- # related_name="vwis",
46
- # to="mod_app.bibliographyitem",
47
- # ),
48
- # ),
49
- # ],
50
- # options={
51
- # "verbose_name": "Visual and Written Influences",
52
- # "verbose_name_plural": "Visual and Written Influences",
53
- # },
54
- # ),
55
53
migrations .AlterModelOptions (
56
54
name = "feedback" ,
57
55
options = {
0 commit comments