Merge pull request #1 from alex-code4okc/alex-code4okc-patch-1

Update 1-serialization.md
This commit is contained in:
Alex Ayon 2019-07-03 22:54:46 -05:00 committed by GitHub
commit 1c73bbb4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ For the purposes of this tutorial we're going to start by creating a simple `Sni
LEXERS = [item for item in get_all_lexers() if item[1]] LEXERS = [item for item in get_all_lexers() if item[1]]
LANGUAGE_CHOICES = sorted([(item[1][0], item[0]) for item in LEXERS]) LANGUAGE_CHOICES = sorted([(item[1][0], item[0]) for item in LEXERS])
STYLE_CHOICES = sorted((item, item) for item in get_all_styles()) STYLE_CHOICES = sorted([(item, item) for item in get_all_styles()])
class Snippet(models.Model): class Snippet(models.Model):