annuaire-eleves/fiches/migrations/0003_phone_social.py

33 lines
1.3 KiB
Python
Raw Normal View History

# Generated by Django 2.2b1 on 2019-02-13 12:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fiches', '0002_department_name'),
]
operations = [
migrations.CreateModel(
name='Social',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=1023, verbose_name='type')),
('content', models.TextField(verbose_name='contenu')),
('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='fiches.Profile', verbose_name='profil')),
],
),
migrations.CreateModel(
name='Phone',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=1023, verbose_name='type')),
('number', models.CharField(max_length=1023, verbose_name='numéro')),
('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='fiches.Profile', verbose_name='profil')),
],
),
]