0002_auto_20220522_1624.py 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Generated by Django 3.2.13 on 2022-05-22 14:24
  2. import colorfield.fields
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('stammbaum', '0001_initial'),
  8. ]
  9. operations = [
  10. migrations.AlterModelOptions(
  11. name='group',
  12. options={'verbose_name': 'Gruppe', 'verbose_name_plural': 'Gruppen'},
  13. ),
  14. migrations.AlterModelOptions(
  15. name='person',
  16. options={'permissions': [('view', 'Can view Stammbaum'), ('upload_image', 'Can upload images')], 'verbose_name': 'Person', 'verbose_name_plural': 'Personen'},
  17. ),
  18. migrations.AddField(
  19. model_name='person',
  20. name='color',
  21. field=colorfield.fields.ColorField(blank=True, default=None, image_field=None, max_length=18, null=True, samples=None, verbose_name='Farbe'),
  22. ),
  23. migrations.AddField(
  24. model_name='person',
  25. name='partners',
  26. field=models.ManyToManyField(blank=True, related_name='_stammbaum_person_partners_+', to='stammbaum.Person', verbose_name='Partner'),
  27. ),
  28. migrations.AlterField(
  29. model_name='group',
  30. name='color',
  31. field=colorfield.fields.ColorField(default='#87bb37', image_field=None, max_length=18, samples=None),
  32. ),
  33. migrations.AlterField(
  34. model_name='person',
  35. name='birth_date',
  36. field=models.DateField(blank=True, null=True, verbose_name='Geburtsdatum'),
  37. ),
  38. migrations.AlterField(
  39. model_name='person',
  40. name='birth_town',
  41. field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Geburtsort'),
  42. ),
  43. migrations.AlterField(
  44. model_name='person',
  45. name='comment',
  46. field=models.TextField(blank=True, null=True, verbose_name='Kommentar'),
  47. ),
  48. migrations.AlterField(
  49. model_name='person',
  50. name='death_date',
  51. field=models.DateField(blank=True, null=True, verbose_name='Todesdatum'),
  52. ),
  53. migrations.AlterField(
  54. model_name='person',
  55. name='death_town',
  56. field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Todesort'),
  57. ),
  58. migrations.AlterField(
  59. model_name='person',
  60. name='group',
  61. field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='stammbaum.group', verbose_name='Gruppe'),
  62. preserve_default=False,
  63. ),
  64. migrations.AlterField(
  65. model_name='person',
  66. name='image',
  67. field=models.ImageField(blank=True, null=True, upload_to='stammbaum/images', verbose_name='Bild'),
  68. ),
  69. migrations.AlterField(
  70. model_name='person',
  71. name='parent',
  72. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='parent_map', to='stammbaum.person', verbose_name='Eltern'),
  73. ),
  74. migrations.DeleteModel(
  75. name='Pair',
  76. ),
  77. ]