Skip to content

Commit 05e5e32

Browse files
committed
Removed Unique constraint from email.
1 parent a11b60d commit 05e5e32

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.2.8 on 2021-10-23 01:50
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('contact', '0001_initial'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='contact',
15+
name='email',
16+
field=models.EmailField(max_length=255),
17+
),
18+
]

contact/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Contact(models.Model):
1111
"""
1212
firstname: str = models.CharField(max_length=100)
1313
lastname: str = models.CharField(max_length=100)
14-
email: str = models.EmailField(unique=True, max_length=255)
14+
email: str = models.EmailField(max_length=255)
1515
subject: str = models.CharField(max_length=255)
1616
message: str = models.TextField(max_length=2000)
1717
active: bool = models.BooleanField(default=False)

0 commit comments

Comments
 (0)