#21450: BaseYearArchiveView prevent ordering of queryset
-------------------------------------+-------------------------------------
     Reporter:  Thibault Serot       |                    Owner:  nobody
  <thibserot@…>                      |                   Status:  new
         Type:  Bug                  |                  Version:  1.5
    Component:  Generic views        |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  BaseYearArchiveView  |  Unreviewed
  filtering                          |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by Thibault Serot <thibserot@…>):

 Hello,
 I actually see that there is also a default filtering + ordering in
 BaseArchiveIndexView:
         qs = self.get_dated_queryset(ordering='-%s' %
 self.get_date_field())
         date_list = self.get_date_list(qs, ordering='DESC')
 Should be replaced by:
         qs = self.get_dated_queryset()
         date_list = self.get_date_list()

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21450#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/094.facb72281fd0664575494aca7258ecf9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to