12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- # Generated by Django 3.2.13 on 2022-05-22 14:24
- import colorfield.fields
- from django.db import migrations, models
- import django.db.models.deletion
- class Migration(migrations.Migration):
- dependencies = [
- ('stammbaum', '0001_initial'),
- ]
- operations = [
- migrations.AlterModelOptions(
- name='group',
- options={'verbose_name': 'Gruppe', 'verbose_name_plural': 'Gruppen'},
- ),
- migrations.AlterModelOptions(
- name='person',
- options={'permissions': [('view', 'Can view Stammbaum'), ('upload_image', 'Can upload images')], 'verbose_name': 'Person', 'verbose_name_plural': 'Personen'},
- ),
- migrations.AddField(
- model_name='person',
- name='color',
- field=colorfield.fields.ColorField(blank=True, default=None, image_field=None, max_length=18, null=True, samples=None, verbose_name='Farbe'),
- ),
- migrations.AddField(
- model_name='person',
- name='partners',
- field=models.ManyToManyField(blank=True, related_name='_stammbaum_person_partners_+', to='stammbaum.Person', verbose_name='Partner'),
- ),
- migrations.AlterField(
- model_name='group',
- name='color',
- field=colorfield.fields.ColorField(default='#87bb37', image_field=None, max_length=18, samples=None),
- ),
- migrations.AlterField(
- model_name='person',
- name='birth_date',
- field=models.DateField(blank=True, null=True, verbose_name='Geburtsdatum'),
- ),
- migrations.AlterField(
- model_name='person',
- name='birth_town',
- field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Geburtsort'),
- ),
- migrations.AlterField(
- model_name='person',
- name='comment',
- field=models.TextField(blank=True, null=True, verbose_name='Kommentar'),
- ),
- migrations.AlterField(
- model_name='person',
- name='death_date',
- field=models.DateField(blank=True, null=True, verbose_name='Todesdatum'),
- ),
- migrations.AlterField(
- model_name='person',
- name='death_town',
- field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Todesort'),
- ),
- migrations.AlterField(
- model_name='person',
- name='group',
- field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='stammbaum.group', verbose_name='Gruppe'),
- preserve_default=False,
- ),
- migrations.AlterField(
- model_name='person',
- name='image',
- field=models.ImageField(blank=True, null=True, upload_to='stammbaum/images', verbose_name='Bild'),
- ),
- migrations.AlterField(
- model_name='person',
- name='parent',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='parent_map', to='stammbaum.person', verbose_name='Eltern'),
- ),
- migrations.DeleteModel(
- name='Pair',
- ),
- ]
|