From 95eb59277c5789eaec4ad6d3338c2eed542df47b Mon Sep 17 00:00:00 2001 From: Almo Endale Date: Thu, 1 Aug 2024 18:25:32 -0700 Subject: [PATCH] fairydust --- .python-version | 1 + .../migrations/0007_locationpage_timezone.py | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .python-version create mode 100644 bakerydemo/locations/migrations/0007_locationpage_timezone.py diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..7cd09cf44 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +bd24 diff --git a/bakerydemo/locations/migrations/0007_locationpage_timezone.py b/bakerydemo/locations/migrations/0007_locationpage_timezone.py new file mode 100644 index 000000000..d1f2facca --- /dev/null +++ b/bakerydemo/locations/migrations/0007_locationpage_timezone.py @@ -0,0 +1,30 @@ +# Generated by Django 4.2.13 on 2024-07-21 00:57 + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("locations", "0006_alter_locationoperatinghours_day"), + ] + + operations = [ + migrations.AddField( + model_name="locationpage", + name="timezone", + field=models.TextField( + default="Etc/UTC", + help_text="Examples: US/Pacific, America/Los_Angeles, Etc/UTC", + max_length=25, + validators=[ + django.core.validators.RegexValidator( + code="invalid_tz", + message="Examples: US/Pacific, America/Los_Angeles, Etc/UTC", + regex="^(\\w+\\/?\\w+)$", + ) + ], + ), + ), + ]