forked from Princeton-CDH/cdh-web
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from springload/fix/bed-fixes
purple mode
- Loading branch information
Showing
8 changed files
with
184 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated by Django 5.0.5 on 2024-07-03 21:59 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"cdhpages", | ||
"0051_sitealert_alter_contentpage_body_alter_homepage_body_and_more", | ||
), | ||
("wagtailcore", "0089_log_entry_data_json_null_to_object"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="PurpleMode", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("purple_mode", models.BooleanField(default=False)), | ||
( | ||
"site", | ||
models.OneToOneField( | ||
editable=False, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="wagtailcore.site", | ||
), | ||
), | ||
], | ||
options={ | ||
"abstract": False, | ||
}, | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
cdhweb/pages/migrations/0053_alter_purplemode_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 5.0.5 on 2024-07-03 22:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("cdhpages", "0052_purplemode"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="purplemode", | ||
options={"verbose_name": "Purple Site Setting"}, | ||
), | ||
migrations.AlterField( | ||
model_name="purplemode", | ||
name="purple_mode", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="This will turn the site purple \n by transforming all shades of cyan on the site into shades of purple", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
cdhweb/projects/migrations/0028_alter_project_accordion.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Generated by Django 5.0.5 on 2024-07-03 21:43 | ||
|
||
import wagtail.blocks | ||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("projects", "0027_project_accordion_alter_project_description_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="project", | ||
name="accordion", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"accordion", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"accordion_items", | ||
wagtail.blocks.ListBlock( | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"heading", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("code", "Code"), | ||
("data", "Data"), | ||
( | ||
"documentation", | ||
"Documentation", | ||
), | ||
("analysis", "Analysis"), | ||
( | ||
"related_courses_and_course_modules", | ||
"Related Courses and Course Modules", | ||
), | ||
( | ||
"project_peer_review", | ||
"Project Peer Review", | ||
), | ||
("awards", "Awards"), | ||
] | ||
), | ||
), | ||
( | ||
"body", | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
"bold", | ||
"italic", | ||
"link", | ||
"ol", | ||
"ul", | ||
"document-link", | ||
"h3", | ||
"h4", | ||
] | ||
), | ||
), | ||
] | ||
) | ||
), | ||
) | ||
], | ||
label="Project Accordion", | ||
), | ||
) | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
verbose_name="Project Details", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters