initial version
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 4.2.17 on 2024-12-18 12:08
|
||||
|
||||
from django.db import migrations, models
|
||||
import phonenumber_field.modelfields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Contact',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=50)),
|
||||
('email', models.EmailField(max_length=254)),
|
||||
('subject', models.CharField(max_length=50)),
|
||||
('phone_number', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None)),
|
||||
('message', models.TextField()),
|
||||
('date_created', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Contacts',
|
||||
'ordering': ['id'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user