Revert "feat: add marketing email opt in field" (#30493)
This commit is contained in:
@@ -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.'),
|
||||
),
|
||||
]
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user