35 lines
1.4 KiB
Python
35 lines
1.4 KiB
Python
# Generated by Django 5.0.6 on 2024-06-24 00:33
|
|
|
|
import django.core.validators
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('images', '0003_alter_customimage_alt'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ContactEntity',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=128)),
|
|
('contact_type', models.CharField(choices=[('person', 'Person')], default='person', max_length=128)),
|
|
('title', models.CharField(blank=True, max_length=128)),
|
|
('email', models.EmailField(blank=True, max_length=254)),
|
|
('phone_number', models.CharField(blank=True, max_length=17, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$')])),
|
|
('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.customimage')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Kontaktpunkt',
|
|
'verbose_name_plural': 'Kontaktpunkt',
|
|
'ordering': ['name'],
|
|
},
|
|
),
|
|
]
|