gavinzheng / django-reporting

Automatically exported from code.google.com/p/django-reporting
0 stars 0 forks source link

Display names for group_by aren't being displayed #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you specify a display name for a group_by field:

    group_by = [
        ('ip', 'IP Address'),
    ]

I expected the column heading to display 'IP Address' but instead it shows 'Ip'

Original issue reported on code.google.com by andybak on 27 Jan 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Has this been fixed? I would love to use my own column headings for group_by 
and 
list_filter.

Original comment by dbern...@gmail.com on 1 May 2010 at 2:17

GoogleCodeExporter commented 9 years ago
You could set the verbose_name for the group_by filed in the model definition 
and it will be shown as the column heading then.

This however leads to a confusion why do we have two different approaches to 
get a field's title...

Original comment by esizi...@gmail.com on 23 Jun 2010 at 4:43