Fix DMS entity assignment and Geschichte document linking

- DMS edit view: add Destinatär, Land, Pächter, Verpachtung dropdowns
  so documents can be assigned to entities after upload
- Geschichte: add M2M dokumente field on GeschichteSeite model
- Geschichte form: checkboxes to select/link Stiftungsgeschichte docs
- Geschichte detail: show linked documents in sidebar with download

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
SysAdmin Agent
2026-03-12 10:40:46 +00:00
parent e6f4c5ba1b
commit 5c9db56158
7 changed files with 167 additions and 12 deletions

View File

@@ -36,6 +36,14 @@ class GeschichteSeite(models.Model):
verbose_name="Aktualisiert von"
)
# Verknüpfte DMS-Dokumente
dokumente = models.ManyToManyField(
"DokumentDatei",
blank=True,
related_name="geschichte_seiten",
verbose_name="Verknüpfte Dokumente",
)
# Options
ist_veroeffentlicht = models.BooleanField(default=True, verbose_name="Veröffentlicht")
sortierung = models.IntegerField(default=0, verbose_name="Sortierung")