#36932: Admin renders label after widget for non-model form fields when using
FilteredSelectMultiple
--------------------------+-----------------------------------------
     Reporter:  jakeymac  |                     Type:  Uncategorized
       Status:  new       |                Component:  Uncategorized
      Version:  5.2       |                 Severity:  Normal
     Keywords:            |             Triage Stage:  Unreviewed
    Has patch:  0         |      Needs documentation:  0
  Needs tests:  0         |  Patch needs improvement:  0
Easy pickings:  0         |                    UI/UX:  0
--------------------------+-----------------------------------------
 I'm a developer for Tethys Platform, an open source earth science web
 development platform based on Django.

 When adding non-model ModelMultipleChoiceFields dynamically to a
 ModelAdmin form (e.g., via a custom form or get_form()), Django admin
 renders the widget before the label when the field uses
 FilteredSelectMultiple as its widget. I've tested this in versions 5.2.9
 and 5.2.11 with the same behavior.

 I have found that as soon as i place {{ field.field}} (line 24 in
 fieldset.html), inside a div container, the template renders as expected,
 with the label coming before the widget.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36932>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019c68feb90d-0191c7f3-8b33-407d-b640-373121cf0aca-000000%40eu-central-1.amazonses.com.

Reply via email to