Code

Ticket #11141: 11141.diff

File 11141.diff, 551 bytes (added by SmileyChris, 5 years ago)
Line 
1Index: docs/ref/contrib/admin/index.txt
2===================================================================
3--- docs/ref/contrib/admin/index.txt    (revision 11017)
4+++ docs/ref/contrib/admin/index.txt    (working copy)
5@@ -347,7 +347,7 @@
6               birthday = models.DateField()
7 
8               def born_in_fifties(self):
9-                  return self.birthday.strftime('%Y')[:3] == 5
10+                  return self.birthday.strftime('%Y')[:3] == '195'
11               born_in_fifties.boolean = True
12 
13           class PersonAdmin(admin.ModelAdmin):