first commit
This commit is contained in:
32
contact/migrations/0001_initial.py
Normal file
32
contact/migrations/0001_initial.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# Generated by Django 6.0 on 2026-01-15 11:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
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=254, verbose_name='Ad Soyad ')),
|
||||
('email', models.CharField(max_length=254, verbose_name='Eposta Adresi ')),
|
||||
('subject', models.CharField(max_length=254, verbose_name='Konu ')),
|
||||
('message', models.CharField(max_length=254, verbose_name='Mesaj ')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Oluşturulma Tarihi')),
|
||||
('updated_at', models.DateTimeField(auto_now=True, verbose_name='Güncelleme Tarihi')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Contact',
|
||||
'verbose_name_plural': 'Contact',
|
||||
'db_table': 'contacts',
|
||||
'ordering': ['created_at'],
|
||||
},
|
||||
),
|
||||
]
|
||||
22
contact/migrations/0002_contact_user.py
Normal file
22
contact/migrations/0002_contact_user.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 6.0 on 2026-01-15 12:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('contact', '0001_initial'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='contact',
|
||||
name='user',
|
||||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Kullanıcı'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
18
contact/migrations/0003_alter_contact_message.py
Normal file
18
contact/migrations/0003_alter_contact_message.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 6.0 on 2026-01-15 12:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('contact', '0002_contact_user'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='contact',
|
||||
name='message',
|
||||
field=models.TextField(verbose_name='Mesaj '),
|
||||
),
|
||||
]
|
||||
19
contact/migrations/0004_contact_ip.py
Normal file
19
contact/migrations/0004_contact_ip.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 6.0 on 2026-01-15 13:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('contact', '0003_alter_contact_message'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='contact',
|
||||
name='ip',
|
||||
field=models.CharField(default=123, max_length=100, verbose_name='IP Adresi '),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 6.0 on 2026-01-15 13:36
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('contact', '0004_contact_ip'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='contact',
|
||||
name='ip',
|
||||
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='IP Adresi '),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='contact',
|
||||
name='user',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Kullanıcı'),
|
||||
),
|
||||
]
|
||||
0
contact/migrations/__init__.py
Normal file
0
contact/migrations/__init__.py
Normal file
Reference in New Issue
Block a user