Skip to content

Commit

Permalink
Added max_length to session_id and venue_type (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs authored Mar 14, 2024
1 parent 17b7cfb commit a157b36
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated by Django 5.0.2 on 2024-03-14 11:08

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("whatson", "0008_eventpage_need_to_know_button_link_and_more"),
]

operations = [
migrations.AlterField(
model_name="eventpage",
name="venue_type",
field=models.CharField(
blank=True,
choices=[
("online", "Online"),
("in_person", "In person"),
("hybrid", "In person and online"),
],
default="in_person",
max_length=30,
verbose_name="venue type",
),
),
migrations.AlterField(
model_name="eventsession",
name="session_id",
field=models.CharField(
blank=True,
editable=False,
max_length=35,
null=True,
verbose_name="session ID",
),
),
]
3 changes: 2 additions & 1 deletion etna/whatson/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ class EventSession(models.Model):
null=True,
blank=True,
editable=False,
max_length=35,
)

start = models.DateTimeField(
Expand Down Expand Up @@ -522,11 +523,11 @@ class EventPage(ArticleTagMixin, TopicalPageMixin, BasePageWithIntro):

# Venue information
venue_type = models.CharField(
max_length=15,
verbose_name=_("venue type"),
choices=VenueType.choices,
default=VenueType.IN_PERSON,
blank=True,
max_length=30,
)

venue_website = models.URLField(
Expand Down

0 comments on commit a157b36

Please sign in to comment.