123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- # Generated by Django 3.2.15 on 2022-08-23 16:59
- import django.core.validators
- from django.db import migrations, models
- import django.db.models.deletion
- import wagtail_editable_help.models
- class Migration(migrations.Migration):
- dependencies = [
- ("wagtailimages", "0024_index_image_file_hash"),
- ("locations", "0005_use_json_field_for_body_streamfield"),
- ]
- operations = [
- migrations.AlterField(
- model_name="locationoperatinghours",
- name="closed",
- field=models.BooleanField(
- blank=True,
- help_text=wagtail_editable_help.models.HelpText(
- "Location page",
- "operating hours closed",
- default="Tick if location is closed on this day",
- ),
- verbose_name="Closed?",
- ),
- ),
- migrations.AlterField(
- model_name="locationpage",
- name="image",
- field=models.ForeignKey(
- blank=True,
- help_text=wagtail_editable_help.models.HelpText(
- "Common",
- "hero image",
- default="Landscape mode only; horizontal width between 1000px and 3000px.",
- ),
- null=True,
- on_delete=django.db.models.deletion.SET_NULL,
- related_name="+",
- to="wagtailimages.image",
- ),
- ),
- migrations.AlterField(
- model_name="locationpage",
- name="introduction",
- field=models.TextField(
- blank=True,
- help_text=wagtail_editable_help.models.HelpText(
- "Location page", "introduction", default="Text to describe the page"
- ),
- ),
- ),
- migrations.AlterField(
- model_name="locationpage",
- name="lat_long",
- field=models.CharField(
- help_text=wagtail_editable_help.models.HelpText(
- "Location page",
- "lat/long",
- default="Comma separated lat/long. (Ex. 64.144367, -21.939182) Right click Google Maps and select 'What's Here'",
- ),
- max_length=36,
- validators=[
- django.core.validators.RegexValidator(
- code="invalid_lat_long",
- message="Lat Long must be a comma-separated numeric lat and long",
- regex="^(\\-?\\d+(\\.\\d+)?),\\s*(\\-?\\d+(\\.\\d+)?)$",
- )
- ],
- ),
- ),
- migrations.AlterField(
- model_name="locationsindexpage",
- name="image",
- field=models.ForeignKey(
- blank=True,
- help_text=wagtail_editable_help.models.HelpText(
- "Common",
- "hero image",
- default="Landscape mode only; horizontal width between 1000px and 3000px.",
- ),
- null=True,
- on_delete=django.db.models.deletion.SET_NULL,
- related_name="+",
- to="wagtailimages.image",
- ),
- ),
- migrations.AlterField(
- model_name="locationsindexpage",
- name="introduction",
- field=models.TextField(
- blank=True,
- help_text=wagtail_editable_help.models.HelpText(
- "Locations index page",
- "introduction",
- default="Text to describe the page",
- ),
- ),
- ),
- ]
|