cmsmanage/membershipworks/migrations/0015_eventmeetingtime_end_after_start.py
Adam Goldsmith dd6ef35223
All checks were successful
Ruff / ruff (push) Successful in 24s
membershipworks: Constrain EventMeetingTime.end after start
2024-02-12 16:26:19 -05:00

19 lines
492 B
Python

# Generated by Django 5.0.2 on 2024-02-12 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("membershipworks", "0014_remove_eventext_details_timestamp"),
]
operations = [
migrations.AddConstraint(
model_name="eventmeetingtime",
constraint=models.CheckConstraint(
check=models.Q(("end__gt", models.F("start"))), name="end_after_start"
),
),
]