From f6acd1d271122d66de8061e75ae26137ddf02658 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 18 Jan 2017 11:51:29 -0500 Subject: Refs #23919 -- Removed Python 2 notes in docs. --- docs/topics/forms/modelforms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/topics/forms') diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index b0115cef7e..a3a8179169 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -169,7 +169,7 @@ Consider this set of models:: title = models.CharField(max_length=3, choices=TITLE_CHOICES) birth_date = models.DateField(blank=True, null=True) - def __str__(self): # __unicode__ on Python 2 + def __str__(self): return self.name class Book(models.Model): -- cgit v1.3