#35843: Changing the rendering order of formsets is not clear
-------------------------------------+-------------------------------------
     Reporter:  Matthew Pava         |                    Owner:  (none)
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  5.1
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Matthew Pava):

 I was able to get it to work by basically putting the `sorted` expression
 into the `__iter__` method and removing my implementation of `forms`.

 {{{
     def __iter__(self):
         return (i for i in sorted([f for f in self.forms],
 key=self._sort_form_key, reverse=True))
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35843#comment:1>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070192923853bb-525da1df-2f6a-4edb-b655-80d8b54628b1-000000%40eu-central-1.amazonses.com.

Reply via email to