From a9dd6221af2148410c8a26dcbafd1ff8cc0fb107 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 4 Jul 2013 15:19:33 +0200 Subject: [1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__ Thanks Marc Tamlyn and Tim Graham for the review. Backport of 7442eb1a24 from master. --- docs/topics/forms/modelforms.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/topics/forms') diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index bd9e14aea4..d961ee41d5 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -162,6 +162,7 @@ Consider this set of models:: title = models.CharField(max_length=3, choices=TITLE_CHOICES) birth_date = models.DateField(blank=True, null=True) + # On Python 3: def __str__(self): def __unicode__(self): return self.name -- cgit v1.3