membershipworks: Add EventExt.materials_fee_included_in_price field
All checks were successful
Ruff / ruff (push) Successful in 20s

This commit is contained in:
Adam Goldsmith 2024-01-24 22:12:14 -05:00
parent ee399e6b64
commit 19d8e888f4
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 5.0.1 on 2024-01-25 02:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("membershipworks", "0008_event_occurred"),
]
operations = [
migrations.AddField(
model_name="eventext",
name="materials_fee_included_in_price",
field=models.BooleanField(null=True),
),
]

View File

@ -481,6 +481,7 @@ class EventExt(Event):
materials_fee = models.DecimalField( materials_fee = models.DecimalField(
max_digits=13, decimal_places=4, null=True, blank=True max_digits=13, decimal_places=4, null=True, blank=True
) )
materials_fee_included_in_price = models.BooleanField(null=True)
instructor_percentage = models.DecimalField( instructor_percentage = models.DecimalField(
max_digits=5, decimal_places=4, default=0.5 max_digits=5, decimal_places=4, default=0.5
) )