Skip to content

Commit 2914c57

Browse files
eigenwijsjethibaudcolas
authored andcommitted
.choices is not required after Django 5.0
1 parent 32a235e commit 2914c57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/core/models/snippets.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ class IconChoice(models.TextChoices):
3232
title = models.CharField(max_length=50)
3333
description = models.TextField()
3434
link = models.URLField()
35-
icon = models.CharField(
36-
max_length=7, choices=IconChoice.choices, default=IconChoice.INFO
37-
)
35+
icon = models.CharField(max_length=7, choices=IconChoice, default=IconChoice.INFO)
3836

3937
panels = [
4038
FieldPanel("title"),

0 commit comments

Comments
 (0)