Revert "feat: add marketing email opt in field" (#30493)

This commit is contained in:
Adam Blackwell
2022-05-26 10:00:50 -04:00
committed by GitHub
parent 8e1475f585
commit 4cd36cb2c4
2 changed files with 0 additions and 25 deletions

View File

@@ -1,18 +0,0 @@
# Generated by Django 3.2.13 on 2022-05-23 13:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0044_courseenrollmentcelebration_celebrate_weekly_goal'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='is_marketable',
field=models.BooleanField(default=False, help_text='If selected, user will receive edX marketing emails. The marketing email opt-in checkbox on registration form maps to this field.'),
),
]

View File

@@ -612,13 +612,6 @@ class UserProfile(models.Model):
profile_image_uploaded_at = models.DateTimeField(null=True, blank=True)
phone_regex = RegexValidator(regex=r'^\+?1?\d*$', message="Phone number can only contain numbers.")
phone_number = models.CharField(validators=[phone_regex], blank=True, null=True, max_length=50)
is_marketable = models.BooleanField(
default=False,
help_text=_(
"If selected, user will receive edX marketing emails. The marketing email opt-in checkbox on registration "
"form maps to this field."
),
)
@property
def has_profile_image(self):