Ticket #9507: r9333-admin-doc.diff

File r9333-admin-doc.diff, 937 bytes (added by John-Scott Atlakson, 16 years ago)
  • docs/ref/contrib/admin.txt

     
    262262      example::
    263263   
    264264          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)
    266266          upper_case_name.short_description = 'Name'
    267267       
    268268          class PersonAdmin(admin.ModelAdmin):
     
    275275              list_display = ('upper_case_name',)
    276276             
    277277              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)
    279279              upper_case_name.short_description = 'Name'
    280280   
    281281    * A string representing an attribute on the model. This behaves almost
Back to Top