feat: added material to model and form

This commit is contained in:
2025-05-31 22:47:43 +02:00
parent f5d2550000
commit a9e32034a7
5 changed files with 98 additions and 60 deletions

View File

@@ -46,10 +46,21 @@ class Ticket(models.Model):
("high", "Hoch"),
]
MATERIAL_CHOICES = [
("learning_sprint", "Learning Sprint"),
("ilse", "Intensive Live Session"),
("video", "Video"),
("exercise", "Übungsaufgabe"),
("solution", "Musterlösung"),
("slides", "Präsentationsfolien"),
("other", "Sonstiges"),
]
title = models.CharField(max_length=200)
description = models.TextField()
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default="new")
priority = models.CharField(max_length=10, choices=PRIORITY_CHOICES, default="medium")
material = models.CharField(max_length=20, choices=MATERIAL_CHOICES, default="script")
answer = models.TextField(
blank=True,