Skip to content

Commit

Permalink
fairydust
Browse files Browse the repository at this point in the history
  • Loading branch information
Amondale committed Aug 2, 2024
1 parent d3030d5 commit 95eb592
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bd24
30 changes: 30 additions & 0 deletions bakerydemo/locations/migrations/0007_locationpage_timezone.py
Original file line number Diff line number Diff line change
@@ -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+)$",
)
],
),
),
]

0 comments on commit 95eb592

Please sign in to comment.