From 19d8e888f42e2cc88b9a9942c5f20551425fe055 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 24 Jan 2024 22:12:14 -0500 Subject: [PATCH] membershipworks: Add EventExt.materials_fee_included_in_price field --- ..._eventext_materials_fee_included_in_price.py | 17 +++++++++++++++++ membershipworks/models.py | 1 + 2 files changed, 18 insertions(+) create mode 100644 membershipworks/migrations/0009_eventext_materials_fee_included_in_price.py diff --git a/membershipworks/migrations/0009_eventext_materials_fee_included_in_price.py b/membershipworks/migrations/0009_eventext_materials_fee_included_in_price.py new file mode 100644 index 0000000..f90d780 --- /dev/null +++ b/membershipworks/migrations/0009_eventext_materials_fee_included_in_price.py @@ -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), + ), + ] diff --git a/membershipworks/models.py b/membershipworks/models.py index d34cbfb..9079164 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -481,6 +481,7 @@ class EventExt(Event): materials_fee = models.DecimalField( max_digits=13, decimal_places=4, null=True, blank=True ) + materials_fee_included_in_price = models.BooleanField(null=True) instructor_percentage = models.DecimalField( max_digits=5, decimal_places=4, default=0.5 )