Skip to content

Commit 4e38e3c

Browse files
committed
removing media folder script; contents don't persist, doesn't fix issue as intended. also updated help text re bib gen
1 parent e6508e3 commit 4e38e3c

File tree

4 files changed

+51
-8
lines changed

4 files changed

+51
-8
lines changed

.platform/hooks/postdeploy/02_create_media_folder.sh

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Generated by Django 4.2.5 on 2024-01-29 10:18
2+
3+
import ckeditor_uploader.fields
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
dependencies = [
9+
("mod_app", "0015_file_size_validator"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="analysis",
15+
name="content",
16+
field=ckeditor_uploader.fields.RichTextUploadingField(
17+
blank=True,
18+
help_text="Mentions are available here and will contibute to the bibliography.",
19+
null=True,
20+
),
21+
),
22+
migrations.AlterField(
23+
model_name="film",
24+
name="print_comments",
25+
field=models.TextField(
26+
blank=True,
27+
help_text="Optional notes about the print/s. Mentions are available here and will contibute to the bibliography.",
28+
verbose_name="Notes on Prints",
29+
),
30+
),
31+
migrations.AlterField(
32+
model_name="teachingresources",
33+
name="material",
34+
field=ckeditor_uploader.fields.RichTextUploadingField(
35+
blank=True,
36+
help_text="Mentions are available here and will contibute to the bibliography.",
37+
null=True,
38+
),
39+
),
40+
]

mod_app/models/film_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __str__(self):
9090
)
9191
print_comments = models.TextField(
9292
blank=True,
93-
help_text="Optional notes about the print/s",
93+
help_text="Optional notes about the print/s. Mentions are available here and will contibute to the bibliography.",
9494
verbose_name="Notes on Prints",
9595
)
9696

mod_app/models/teaching_analysis_models.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def default_title():
2727

2828
title = models.CharField(max_length=255, default=default_title)
2929

30-
content = RichTextUploadingField(null=True, blank=True)
30+
content = RichTextUploadingField(
31+
null=True,
32+
blank=True,
33+
help_text="Mentions are available here and will contibute to the bibliography.",
34+
)
3135

3236
films = models.ManyToManyField("Film", related_name="analyses", blank=True)
3337

@@ -65,7 +69,11 @@ def default_title():
6569
return f"Teaching Resources bundle{TeachingResources.objects.count() + 1}"
6670

6771
title = models.CharField(max_length=255, default=default_title)
68-
material = RichTextUploadingField(null=True, blank=True)
72+
material = RichTextUploadingField(
73+
null=True,
74+
blank=True,
75+
help_text="Mentions are available here and will contibute to the bibliography.",
76+
)
6977

7078
films = models.ManyToManyField("Film", related_name="trs", blank=True)
7179

0 commit comments

Comments
 (0)