Changes between Version 1 and Version 9 of Ticket #25790
- Timestamp:
- Aug 22, 2016, 8:07:02 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25790
- Property Has patch set
- Property Needs documentation set
- Property Triage Stage Unreviewed → Accepted
- Property Summary Admin magic change list UI ordering is too helpful? → Add a way to disable column sorting in the admin
- Property Version 1.8 → master
- Property Owner changed from to
- Property Status new → assigned
- Property Patch needs improvement set
-
Ticket #25790 – Description
v1 v9 10 10 class CreditCard(models.Model): 11 11 issued_to = models.CharField(max_length=40) 12 valid_to= models.DateField()12 good_thru = models.DateField() 13 13 last_four_digits = models.CharField(max_length=4) 14 14 }}} … … 24 24 list_display = [ 25 25 'issued_to', 26 ' valid_to',26 'good_thru', 27 27 'last_four_digits', 28 28 ] 29 ordering = [' valid_to']29 ordering = ['good_thru'] 30 30 31 31 … … 39 39 In the example, it allows users to also sort by the name of the credit card owner which, even if not asked for, seems useful. 40 40 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 41 Where it doesn't make so much sense is, for the example, in the case of the 'last four digits' column. 42 43 IMHO there should be a way to express which columns one wants this functionality for without having to resort to things like: 42 44 43 45 {{{ … … 45 47 list_display = [ 46 48 'issued_to', 47 ' valid_to',49 'good_thru', 48 50 'last4digits', 49 51 ]