membershipworks: Remove Member fields that no longer exist in MembershipWorks

This commit is contained in:
Adam Goldsmith 2022-02-27 19:03:05 -05:00
parent 42f75f0858
commit 6b3113e839
2 changed files with 37 additions and 16 deletions

View File

@ -0,0 +1,37 @@
# Generated by Django 4.0.2 on 2022-03-01 19:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("membershipworks", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="member",
name="accepted_covid19_policy",
),
migrations.RemoveField(
model_name="member",
name="access_permitted_during_covid19_staffed_period_only",
),
migrations.RemoveField(
model_name="member",
name="gift_membership_purchased_by",
),
migrations.RemoveField(
model_name="member",
name="purchased_gift_membership_for",
),
migrations.RemoveField(
model_name="member",
name="normal_access_permitted_during_covid19_limited_operations",
),
migrations.RemoveField(
model_name="member",
name="self_certify_essential_business",
),
]

View File

@ -83,12 +83,6 @@ class Member(models.Model):
parent_account_id = models.TextField( parent_account_id = models.TextField(
db_column="Parent Account ID", null=True, blank=True db_column="Parent Account ID", null=True, blank=True
) )
gift_membership_purchased_by = models.TextField(
db_column="Gift Membership purchased by", null=True, blank=True
)
purchased_gift_membership_for = models.TextField(
db_column="Purchased Gift Membership for", null=True, blank=True
)
closet_storage = models.TextField( closet_storage = models.TextField(
db_column="Closet Storage #", null=True, blank=True db_column="Closet Storage #", null=True, blank=True
) )
@ -99,12 +93,6 @@ class Member(models.Model):
access_permitted_shops_during_extended_hours = models.BooleanField( access_permitted_shops_during_extended_hours = models.BooleanField(
db_column="Access Permitted Shops During Extended Hours?" db_column="Access Permitted Shops During Extended Hours?"
) )
normal_access_permitted_during_covid19_limited_operations = models.BooleanField(
db_column="Normal Access Permitted During COVID-19 Limited Operations"
)
access_permitted_during_covid19_staffed_period_only = models.BooleanField(
db_column="Access Permitted During COVID-19 Staffed Period Only"
)
access_front_door_and_studio_space_during_extended_hours = models.BooleanField( access_front_door_and_studio_space_during_extended_hours = models.BooleanField(
db_column="Access Front Door and Studio Space During Extended Hours?" db_column="Access Front Door and Studio Space During Extended Hours?"
) )
@ -182,10 +170,6 @@ class Member(models.Model):
liability_form_filled_out = models.BooleanField( liability_form_filled_out = models.BooleanField(
db_column="Liability Form Filled Out" db_column="Liability Form Filled Out"
) )
self_certify_essential_business = models.BooleanField(
db_column="selfCertifyEssentialBusiness"
)
accepted_covid19_policy = models.BooleanField(db_column="Accepted COVID-19 Policy")
flags = models.ManyToManyField(Flag, through="MemberFlag", related_name="members") flags = models.ManyToManyField(Flag, through="MemberFlag", related_name="members")
def __str__(self): def __str__(self):