Browse Source

fix participant

master
alireza 1 year ago
parent
commit
a74a9e79da
  1. 18
      apps/transaction/migrations/0003_alter_participantinfo_email.py
  2. 2
      apps/transaction/models.py

18
apps/transaction/migrations/0003_alter_participantinfo_email.py

@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2025-01-14 16:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transaction', '0002_alter_participantinfo_phone_number'),
]
operations = [
migrations.AlterField(
model_name='participantinfo',
name='email',
field=models.EmailField(help_text="Enter the user's email address.", max_length=254, verbose_name='Email Address'),
),
]

2
apps/transaction/models.py

@ -35,7 +35,7 @@ class ParticipantInfo(models.Model):
verbose_name="Transaction Participant"
)
fullname = models.CharField(max_length=255, verbose_name="Full Name", help_text="Enter the full name of the user.")
email = models.EmailField(unique=True, verbose_name="Email Address", help_text="Enter the user's email address.")
email = models.EmailField(verbose_name="Email Address", help_text="Enter the user's email address.")
phone_number = PhoneNumberField(validators=[validate_possible_number], null=True, blank=True, verbose_name=_('phone'))
gender = models.CharField(
max_length=20, choices=GenderChoices.choices, null=True, blank=True, verbose_name=_('Gender'), help_text="Select the user's gender."

Loading…
Cancel
Save