feat: added answer field

This commit is contained in:
2025-05-31 01:14:49 +02:00
parent 51bf409e3c
commit aabf84ecc0
8 changed files with 128 additions and 10 deletions

View File

@@ -51,6 +51,18 @@ class Ticket(models.Model):
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default="new")
priority = models.CharField(max_length=10, choices=PRIORITY_CHOICES, default="medium")
answer = models.TextField(
blank=True,
null=True,
verbose_name="Antwort/Lösung",
help_text="Beschreibung der Lösung (erforderlich bei Status 'Gelöst')"
)
answered_at = models.DateTimeField(
blank=True,
null=True,
verbose_name="Beantwortet am"
)
course = models.ForeignKey(
Course,
on_delete=models.CASCADE,