Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9507 -- Correct an example in the admin docs. Thanks, john_sco…

…tt and

SmileyChris.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 599852d04db750c62f9b8e5370e35ef71acfd5b6 1 parent 40976e0
Malcolm Tredinnick authored November 14, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/ref/contrib/admin.txt
4  docs/ref/contrib/admin.txt
@@ -262,7 +262,7 @@ You have four possible values that can be used in ``list_display``:
262 262
       example::
263 263
     
264 264
           def upper_case_name(obj):
265  
-              return "%s %s" % (obj.first_name, obj.last_name).upper()
  265
+              return ("%s %s" % (obj.first_name, obj.last_name)).upper()
266 266
           upper_case_name.short_description = 'Name'
267 267
         
268 268
           class PersonAdmin(admin.ModelAdmin):
@@ -275,7 +275,7 @@ You have four possible values that can be used in ``list_display``:
275 275
               list_display = ('upper_case_name',)
276 276
               
277 277
               def upper_case_name(self, obj):
278  
-                return "%s %s" % (obj.first_name, obj.last_name).upper()
  278
+                return ("%s %s" % (obj.first_name, obj.last_name)).upper()
279 279
               upper_case_name.short_description = 'Name'
280 280
     
281 281
     * A string representing an attribute on the model. This behaves almost

0 notes on commit 599852d

Please sign in to comment.
Something went wrong with that request. Please try again.