-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from chnm/refactor/exhibits
Three-column layouts and adjusted caption and view full image interactions
- Loading branch information
Showing
59 changed files
with
43,024 additions
and
148 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,20 @@ | ||
# Generated by Django 5.0.6 on 2024-10-01 15:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("exhibits", "0024_exhibitpage_display_title_alter_exhibitpage_layout"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="exhibitpage", | ||
name="image_zoomable", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="Check this box if you want the image to be zoomable.", | ||
), | ||
), | ||
] |
60 changes: 60 additions & 0 deletions
60
exhibits/migrations/0026_exhibitpage_image_first_column_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,60 @@ | ||
# Generated by Django 5.0.6 on 2024-10-02 13:17 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("exhibits", "0025_exhibitpage_image_zoomable"), | ||
("wagtailimages", "0026_delete_uploadedimage"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="exhibitpage", | ||
name="image_first_column", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="First image for three-column layouts.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailimages.image", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="exhibitpage", | ||
name="image_second_column", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="Second image for three-column layouts.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailimages.image", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="exhibitpage", | ||
name="image", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="Image for the exhibit page.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailimages.image", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="exhibitpage", | ||
name="image_caption", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Use this field for single column or two-column layouts.", | ||
max_length=500, | ||
verbose_name="Image caption", | ||
), | ||
), | ||
] |
52 changes: 52 additions & 0 deletions
52
exhibits/migrations/0027_exhibitpage_image_first_column_caption_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,52 @@ | ||
# Generated by Django 5.0.6 on 2024-10-02 13:24 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("exhibits", "0026_exhibitpage_image_first_column_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="exhibitpage", | ||
name="image_first_column_caption", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Caption for the first image.", | ||
max_length=500, | ||
verbose_name="Image caption", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="exhibitpage", | ||
name="image_second_column_caption", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Caption for the second image.", | ||
max_length=500, | ||
verbose_name="Image caption", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="exhibitpage", | ||
name="layout", | ||
field=models.CharField( | ||
choices=[ | ||
("left_image_one_third", "Left Image, One Third"), | ||
("right_image_one_third", "Right Image, One Third"), | ||
("left_image_two_thirds", "Left Image, Two Thirds"), | ||
("right_image_two_thirds", "Right Image, Two Thirds"), | ||
("three_column_images_left", "Three Column, Images on Left"), | ||
("three_column_images_right", "Three Column, Images on Right"), | ||
("half_and_half", "Half and Half"), | ||
("full_screen", "Full Screen"), | ||
("wide_image", "Wide Image"), | ||
], | ||
default="left_image_one_third", | ||
help_text="Select the layout for this exhibit page.", | ||
max_length=25, | ||
), | ||
), | ||
] |
25 changes: 25 additions & 0 deletions
25
exhibits/migrations/0028_exhibitpage_link_to_subsection.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,25 @@ | ||
# Generated by Django 5.0.6 on 2024-10-02 15:49 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("exhibits", "0027_exhibitpage_image_first_column_caption_and_more"), | ||
("wagtailcore", "0093_uploadedfile"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="exhibitpage", | ||
name="link_to_subsection", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailcore.page", | ||
), | ||
), | ||
] |
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
Oops, something went wrong.