feat: added material to model and form
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user