Compare commits
3 Commits
6ca6f1390c
...
da0767a0e9
Author | SHA1 | Date | |
---|---|---|---|
da0767a0e9 | |||
188824d53b | |||
35d8fec2a3 |
24
membershipworks/migrations/0007_eventmeetingtime_duration.py
Normal file
24
membershipworks/migrations/0007_eventmeetingtime_duration.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Generated by Django 5.0.1 on 2024-01-03 19:22
|
||||||
|
|
||||||
|
import django.db.models.expressions
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("membershipworks", "0006_eventext_instructor_flat_rate_and_more"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="eventmeetingtime",
|
||||||
|
name="duration",
|
||||||
|
field=models.GeneratedField(
|
||||||
|
db_persist=False,
|
||||||
|
expression=django.db.models.expressions.CombinedExpression(
|
||||||
|
models.F("end"), "-", models.F("start")
|
||||||
|
),
|
||||||
|
output_field=models.DurationField(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user