main flow checked

This commit is contained in:
aminhashemi92 2025-10-03 21:56:25 +03:30
parent b5bf3a5dbe
commit f853ad9784
21 changed files with 365 additions and 89 deletions

View file

@ -39,7 +39,8 @@ class CustomerForm(forms.ModelForm):
}),
'phone_number_1': forms.TextInput(attrs={
'class': 'form-control',
'placeholder': '09123456789'
'placeholder': '09123456789',
'required': True
}),
'phone_number_2': forms.TextInput(attrs={
'class': 'form-control',

View file

@ -0,0 +1,25 @@
# Generated by Django 5.2.4 on 2025-10-02 09:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_historicalprofile_company_name_and_more'),
]
operations = [
migrations.AlterField(
model_name='historicalprofile',
name='phone_number_1',
field=models.CharField(default=1, max_length=11, verbose_name='شماره تماس ۱'),
preserve_default=False,
),
migrations.AlterField(
model_name='profile',
name='phone_number_1',
field=models.CharField(default=1, max_length=11, verbose_name='شماره تماس ۱'),
preserve_default=False,
),
]

View file

@ -78,9 +78,7 @@ class Profile(BaseModel):
)
phone_number_1 = models.CharField(
max_length=11,
null=True,
verbose_name="شماره تماس ۱",
blank=True
)
phone_number_2 = models.CharField(
max_length=11,