Changes between Version 1 and Version 9 of Ticket #25790


Ignore:
Timestamp:
Aug 22, 2016, 8:07:02 PM (8 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25790

    • Property Has patch set
    • Property Needs documentation set
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Admin magic change list UI ordering is too helpful?Add a way to disable column sorting in the admin
    • Property Version 1.8master
    • Property Owner changed from nobody to Sasha Gaevsky
    • Property Status newassigned
    • Property Patch needs improvement set
  • Ticket #25790 – Description

    v1 v9  
    1010class CreditCard(models.Model):
    1111    issued_to = models.CharField(max_length=40)
    12     valid_to = models.DateField()
     12    good_thru = models.DateField()
    1313    last_four_digits = models.CharField(max_length=4)
    1414}}}
     
    2424    list_display = [
    2525        'issued_to',
    26         'valid_to',
     26        'good_thru',
    2727        'last_four_digits',
    2828    ]
    29     ordering = ['valid_to']
     29    ordering = ['good_thru']
    3030
    3131
     
    3939In the example, it allows users to also sort by the name of the credit card owner which, even if not asked for, seems useful.
    4040
    41 Where it doesn't make so much sense is, for the example, in the case of the 'last four digits' column. IMHO there should be a way to express which columns one wants this functionality  without having to resort to things like
     41Where it doesn't make so much sense is, for the example, in the case of the 'last four digits' column.
     42
     43IMHO there should be a way to express which columns one wants this functionality for without having to resort to things like:
    4244
    4345{{{
     
    4547    list_display = [
    4648        'issued_to',
    47         'valid_to',
     49        'good_thru',
    4850        'last4digits',
    4951    ]
Back to Top