mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #35892 -- Supported Widget.use_fieldset in admin forms.
This commit is contained in:
parent
ad4a9e0f3b
commit
4187da258f
22 changed files with 193 additions and 39 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue