Fixed #35892 -- Supported Widget.use_fieldset in admin forms.

This commit is contained in:
antoliny0919 2025-07-28 07:59:26 +09:00 committed by Sarah Boyce
parent ad4a9e0f3b
commit 4187da258f
22 changed files with 193 additions and 39 deletions

View file

@ -623,6 +623,22 @@ class CyclicTwo(models.Model):
return self.name
class Course(models.Model):
DIFFICULTY_CHOICES = [
("beginner", "Beginner Class"),
("intermediate", "Intermediate Class"),
("advanced", "Advanced Class"),
]
title = models.CharField(max_length=100)
materials = models.FileField(upload_to="test_upload")
difficulty = models.CharField(
max_length=20, choices=DIFFICULTY_CHOICES, null=True, blank=True
)
categories = models.ManyToManyField(Category, blank=True)
start_datetime = models.DateTimeField(null=True, blank=True)
class Topping(models.Model):
name = models.CharField(max_length=20)