10000 Update 1-serialization.md (#6781) · dalvtor/django-rest-framework@a3eeeb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3eeeb2

Browse files
alex-code4okctomchristie
authored andcommitted
Update 1-serialization.md (encode#6781)
Assigning a sorted list to STYLE_CHOICES by using a list comprehension.
1 parent 989aeca commit a3eeeb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/1-serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ For the purposes of this tutorial we're going to start by creating a simple `Sni
6060

6161
LEXERS = [item for item in get_all_lexers() if item[1]]
6262
LANGUAGE_CHOICES = sorted([(item[1][0], item[0]) for item in LEXERS])
63-
STYLE_CHOICES = sorted((item, item) for item in get_all_styles())
63+
STYLE_CHOICES = sorted([(item, item) for item in get_all_styles()])
6464

6565

6666
class Snippet(models.Model):

0 commit comments

Comments
 (0)
0