#8398: Admin lists aren't showing non-field columns in table header
--------------------------------------+-------------------------------------
          Reporter:  marinho          |         Owner:  msaelices
            Status:  assigned         |     Milestone:  1.0      
         Component:  Admin interface  |       Version:  SVN      
        Resolution:                   |      Keywords:           
             Stage:  Accepted         |     Has_patch:  1        
        Needs_docs:  0                |   Needs_tests:  0        
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by msaelices):

 @marinho, I can't reproduce the error. All works fine. Can you give me
 both {{{models.py}}} and {{{admin.py}}}, please?

 I've used this {{{models.py}}} and {{{admin.py}}}:

 {{{
 #!python

 # models.py
 from django.db import models

 class Person(models.Model):
     name = models.CharField(max_length=128)

 # admin.py
 class PersonAdmin(admin.ModelAdmin):
     list_display = ('upper_case_name',)

     def upper_case_name(self, obj):
       return obj.name.upper()
 admin.site.register(Person, PersonAdmin)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8398#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to