diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-05 17:42:08 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-05 17:42:08 +0000 |
commit | 30101453a75aaa635e3458d509dec164a6a68ac1 (patch) | |
tree | ceb332bad155a7abe037acc9c123a0bf42dd9ec7 /alphabetlearning/payments/migrations | |
parent | 7cd2fd2b75bc5597e9b2a128bf61201910be6df2 (diff) |
Add unique constraint to EmailVerification email field
This update enhances the EmailVerification model by ensuring the email field is unique, preventing duplicate records. A new form, EmailVerificationForm, was also introduced to handle email cleaning and validation, which enhances user input handling. Additionally, existing views and templates have been updated to integrate this form, improving the user experience and error feedback.
Diffstat (limited to 'alphabetlearning/payments/migrations')
-rw-r--r-- | alphabetlearning/payments/migrations/0013_alter_emailverification_email.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/alphabetlearning/payments/migrations/0013_alter_emailverification_email.py b/alphabetlearning/payments/migrations/0013_alter_emailverification_email.py new file mode 100644 index 0000000..5d537bb --- /dev/null +++ b/alphabetlearning/payments/migrations/0013_alter_emailverification_email.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.4 on 2024-12-05 16:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('payments', '0012_rename_pendingemailverification_emailverification'), + ] + + operations = [ + migrations.AlterField( + model_name='emailverification', + name='email', + field=models.EmailField(max_length=254, unique=True), + ), + ] |