Fixed formatting of get_FOO_display example

This commit is contained in:
Eric Davis 2012-11-04 09:52:37 -08:00
parent 4285571c5a
commit d94dc2d1fa
1 changed files with 16 additions and 16 deletions

View File

@ -627,7 +627,7 @@ For example::
name = models.CharField(max_length=60) name = models.CharField(max_length=60)
shirt_size = models.CharField(max_length=2, choices=SHIRT_SIZES) shirt_size = models.CharField(max_length=2, choices=SHIRT_SIZES)
:: ::
>>> p = Person(name="Fred Flintstone", shirt_size="L") >>> p = Person(name="Fred Flintstone", shirt_size="L")
>>> p.save() >>> p.save()