-
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.
- Loading branch information
Showing
8 changed files
with
923 additions
and
42 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
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 |
---|---|---|
|
@@ -67,6 +67,7 @@ | |
# "allauth.socialaccount", | ||
"anymail", | ||
"django_htmx", | ||
"template_partials", | ||
] | ||
|
||
MIDDLEWARE = [ | ||
|
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
285 changes: 285 additions & 0 deletions
285
home/migrations/0015_alter_basicpage_struct_org_actions_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,285 @@ | ||
# Generated by Django 4.2.15 on 2024-08-19 10:37 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("home", "0014_alter_modelcategory_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="basicpage", | ||
name="struct_org_actions", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"actions", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"action_type", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("OrderAction", "OrderAction"), | ||
("ReserveAction", "ReserveAction"), | ||
], | ||
verbose_name="Action Type", | ||
), | ||
), | ||
( | ||
"target", | ||
wagtail.blocks.URLBlock(verbose_name="Target URL"), | ||
), | ||
( | ||
"language", | ||
wagtail.blocks.CharBlock( | ||
default="en-US", | ||
help_text="If the action is offered in multiple languages, create separate actions for each language.", | ||
verbose_name="Language", | ||
), | ||
), | ||
( | ||
"result_type", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("Reservation", "Reservation"), | ||
("BusReservation", "BusReservation"), | ||
("EventReservation", "EventReservation"), | ||
("FlightReservation", "FlightReservation"), | ||
( | ||
"FoodEstablishmentReservation", | ||
"FoodEstablishmentReservation", | ||
), | ||
( | ||
"LodgingReservation", | ||
"LodgingReservation", | ||
), | ||
( | ||
"RentalCarReservation", | ||
"RentalCarReservation", | ||
), | ||
( | ||
"ReservationPackage", | ||
"ReservationPackage", | ||
), | ||
("TaxiReservation", "TaxiReservation"), | ||
("TrainReservation", "TrainReservation"), | ||
], | ||
help_text="Leave blank for OrderAction", | ||
required=False, | ||
verbose_name="Result Type", | ||
), | ||
), | ||
( | ||
"result_name", | ||
wagtail.blocks.CharBlock( | ||
help_text='Example: "Reserve a table", "Book an appointment", etc.', | ||
required=False, | ||
verbose_name="Result Name", | ||
), | ||
), | ||
( | ||
"extra_json", | ||
wagtail.blocks.RawHTMLBlock( | ||
form_classname="monospace", | ||
help_text="Additional JSON-LD inserted into the Action dictionary. Must be properties of https://schema.org/Action.", | ||
required=False, | ||
verbose_name="Additional action markup", | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
verbose_name="Actions", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="basicpage", | ||
name="struct_org_hours", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"hours", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"days", | ||
wagtail.blocks.MultipleChoiceBlock( | ||
choices=[ | ||
("Monday", "Monday"), | ||
("Tuesday", "Tuesday"), | ||
("Wednesday", "Wednesday"), | ||
("Thursday", "Thursday"), | ||
("Friday", "Friday"), | ||
("Saturday", "Saturday"), | ||
("Sunday", "Sunday"), | ||
], | ||
help_text="For late night hours past 23:59, define each day in a separate block.", | ||
verbose_name="Days", | ||
), | ||
), | ||
( | ||
"start_time", | ||
wagtail.blocks.TimeBlock( | ||
verbose_name="Opening time" | ||
), | ||
), | ||
( | ||
"end_time", | ||
wagtail.blocks.TimeBlock( | ||
verbose_name="Closing time" | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
verbose_name="Hours of operation", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="homepage", | ||
name="struct_org_actions", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"actions", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"action_type", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("OrderAction", "OrderAction"), | ||
("ReserveAction", "ReserveAction"), | ||
], | ||
verbose_name="Action Type", | ||
), | ||
), | ||
( | ||
"target", | ||
wagtail.blocks.URLBlock(verbose_name="Target URL"), | ||
), | ||
( | ||
"language", | ||
wagtail.blocks.CharBlock( | ||
default="en-US", | ||
help_text="If the action is offered in multiple languages, create separate actions for each language.", | ||
verbose_name="Language", | ||
), | ||
), | ||
( | ||
"result_type", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("Reservation", "Reservation"), | ||
("BusReservation", "BusReservation"), | ||
("EventReservation", "EventReservation"), | ||
("FlightReservation", "FlightReservation"), | ||
( | ||
"FoodEstablishmentReservation", | ||
"FoodEstablishmentReservation", | ||
), | ||
( | ||
"LodgingReservation", | ||
"LodgingReservation", | ||
), | ||
( | ||
"RentalCarReservation", | ||
"RentalCarReservation", | ||
), | ||
( | ||
"ReservationPackage", | ||
"ReservationPackage", | ||
), | ||
("TaxiReservation", "TaxiReservation"), | ||
("TrainReservation", "TrainReservation"), | ||
], | ||
help_text="Leave blank for OrderAction", | ||
required=False, | ||
verbose_name="Result Type", | ||
), | ||
), | ||
( | ||
"result_name", | ||
wagtail.blocks.CharBlock( | ||
help_text='Example: "Reserve a table", "Book an appointment", etc.', | ||
required=False, | ||
verbose_name="Result Name", | ||
), | ||
), | ||
( | ||
"extra_json", | ||
wagtail.blocks.RawHTMLBlock( | ||
form_classname="monospace", | ||
help_text="Additional JSON-LD inserted into the Action dictionary. Must be properties of https://schema.org/Action.", | ||
required=False, | ||
verbose_name="Additional action markup", | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
verbose_name="Actions", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="homepage", | ||
name="struct_org_hours", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"hours", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"days", | ||
wagtail.blocks.MultipleChoiceBlock( | ||
choices=[ | ||
("Monday", "Monday"), | ||
("Tuesday", "Tuesday"), | ||
("Wednesday", "Wednesday"), | ||
("Thursday", "Thursday"), | ||
("Friday", "Friday"), | ||
("Saturday", "Saturday"), | ||
("Sunday", "Sunday"), | ||
], | ||
help_text="For late night hours past 23:59, define each day in a separate block.", | ||
verbose_name="Days", | ||
), | ||
), | ||
( | ||
"start_time", | ||
wagtail.blocks.TimeBlock( | ||
verbose_name="Opening time" | ||
), | ||
), | ||
( | ||
"end_time", | ||
wagtail.blocks.TimeBlock( | ||
verbose_name="Closing time" | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
verbose_name="Hours of operation", | ||
), | ||
), | ||
] |
Oops, something went wrong.