API-Performance, Anfragebegrenzung, Logging, Suche, eindeutiges Panel
- API /gd/api/v1/folgen/: 5 statt 2.601 Abfragen (2,1 s -> 0,3 s), Ausgabe unverändert; Throttling 60/min pro IP für anonyme Nutzer - IP-Erkennung nach gd/netz.py ausgelagert (Video-Meldung + API) - Logging von Warnungen/Fehlern nach LOG_DIR/django.log (rotierend), in Tests stumm - Suche: mindestens 2 Zeichen, 25 Fragen pro Seite mit Navigation - FolgePanel: UniqueConstraint eine_person_pro_folge (Migration 0011), Prüfung im Intern-Formular, Panel-Auswahl bleibt nach Fehlern erhalten - 12 neue Tests (51 insgesamt), README und Changelog aktualisiert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1091c90c1e
commit
d4695f43b7
16 files changed
+389
-52
No files matched your search
@@ -110,6 +110,10 @@ class FolgePanel(models.Model):
|
||||
|
||||
class Meta:
|
||||
unique_together = ("folge", "position")
|
||||
constraints = [
|
||||
# Jede Person hat pro Folge höchstens einen Platz
|
||||
models.UniqueConstraint(fields=["folge", "team_member"], name="eine_person_pro_folge"),
|
||||
]
|
||||
verbose_name_plural = "Panel-Sitzplätze"
|
||||
ordering = ['position']
|
||||
|
||||
|
||||
Reference in new issue
Block a user