Merge pull request #493 from edavis/fix-get-foo-display-docs
Fixed formatting of get_FOO_display example
This commit is contained in:
commit
3e9b36688d
|
@ -627,7 +627,7 @@ For example::
|
|||
name = models.CharField(max_length=60)
|
||||
shirt_size = models.CharField(max_length=2, choices=SHIRT_SIZES)
|
||||
|
||||
::
|
||||
::
|
||||
|
||||
>>> p = Person(name="Fred Flintstone", shirt_size="L")
|
||||
>>> p.save()
|
||||
|
|
Loading…
Reference in New Issue