make prospect email nullable

apikeys
Laurent 3 months ago
parent 061bfe4795
commit 8de30d96ff
  1. 18
      biz/migrations/0002_alter_prospect_email.py
  2. 2
      biz/models.py

@ -0,0 +1,18 @@
# Generated by Django 5.1 on 2025-07-31 15:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('biz', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='prospect',
name='email',
field=models.EmailField(blank=True, max_length=254, null=True, unique=True),
),
]

@ -59,7 +59,7 @@ class Prospect(BaseModel):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
first_name = models.CharField(max_length=200, null=True, blank=True)
last_name = models.CharField(max_length=200, null=True, blank=True)
email = models.EmailField(unique=True)
email = models.EmailField(unique=True, null=True, blank=True)
phone = models.CharField(max_length=25, null=True, blank=True)
name_unsure = models.BooleanField(default=False)
official_user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True)

Loading…
Cancel
Save