Ticket #15291: 15291_changelist_alignment.diff

File 15291_changelist_alignment.diff, 1.1 KB (added by Julien Phalip, 14 years ago)
  • django/contrib/admin/media/css/changelists.css

    diff --git a/django/contrib/admin/media/css/changelists.css b/django/contrib/admin/media/css/changelists.css
    index 282833c..4e3402f 100644
    a b  
    6767#changelist table tbody td:first-child {
    6868    border-left: 0;
    6969    border-right: 1px solid #ddd;
    70     text-align: center;
     70}
     71
     72#changelist table tbody td.action-checkbox {
     73    text-align:center;
    7174}
    7275
    7376#changelist table tfoot {
  • django/contrib/admin/templatetags/admin_list.py

    diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py
    index 806be24..57e8ab7 100644
    a b def items_for_result(cl, result, form):  
    139139            result_repr = EMPTY_CHANGELIST_VALUE
    140140        else:
    141141            if f is None:
     142                if field_name == u'action_checkbox':
     143                    row_class = ' class="action-checkbox"'
    142144                allow_tags = getattr(attr, 'allow_tags', False)
    143145                boolean = getattr(attr, 'boolean', False)
    144146                if boolean:
Back to Top