- Apply Black formatting to all Python files in core and stiftung modules - Fix import statement ordering with isort - Ensure all code meets automated quality standards - Resolve CI/CD pipeline formatting failures - Maintain consistent code style across the entire codebase
92 lines
3.1 KiB
Python
92 lines
3.1 KiB
Python
# Generated by Django 5.0.6 on 2025-08-29 13:40
|
|
|
|
import uuid
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("stiftung", "0018_destinataer_vierteljaehrlicher_betrag"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="DestinataerUnterstuetzung",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.UUIDField(
|
|
default=uuid.uuid4,
|
|
editable=False,
|
|
primary_key=True,
|
|
serialize=False,
|
|
),
|
|
),
|
|
(
|
|
"betrag",
|
|
models.DecimalField(
|
|
decimal_places=2, max_digits=12, verbose_name="Betrag (€)"
|
|
),
|
|
),
|
|
("faellig_am", models.DateField(verbose_name="Fällig am")),
|
|
(
|
|
"status",
|
|
models.CharField(
|
|
choices=[
|
|
("geplant", "Geplant"),
|
|
("in_bearbeitung", "In Bearbeitung"),
|
|
("ausgezahlt", "Ausgezahlt"),
|
|
("storniert", "Storniert"),
|
|
],
|
|
default="geplant",
|
|
max_length=20,
|
|
verbose_name="Status",
|
|
),
|
|
),
|
|
(
|
|
"beschreibung",
|
|
models.CharField(
|
|
blank=True, max_length=255, verbose_name="Beschreibung"
|
|
),
|
|
),
|
|
("erstellt_am", models.DateTimeField(auto_now_add=True)),
|
|
("aktualisiert_am", models.DateTimeField(auto_now=True)),
|
|
(
|
|
"destinataer",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="unterstuetzungen",
|
|
to="stiftung.destinataer",
|
|
verbose_name="Destinatär",
|
|
),
|
|
),
|
|
(
|
|
"konto",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
to="stiftung.stiftungskonto",
|
|
verbose_name="Zahlungskonto",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "Destinatärunterstützung",
|
|
"verbose_name_plural": "Destinatärunterstützungen",
|
|
"ordering": ["-faellig_am", "-erstellt_am"],
|
|
"indexes": [
|
|
models.Index(
|
|
fields=["status", "faellig_am"],
|
|
name="stiftung_de_status_1e9799_idx",
|
|
),
|
|
models.Index(
|
|
fields=["destinataer", "status"],
|
|
name="stiftung_de_destina_ba7286_idx",
|
|
),
|
|
],
|
|
},
|
|
),
|
|
]
|