#34520: ModelAdmin.fields: wrapping in tuples does not have any effect (each 
field
on separate line)
-------------------------------------+-------------------------------------
               Reporter:  Stefan     |          Owner:  nobody
  Vollmar                            |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:             |        Version:  4.2
  contrib.admin                      |       Keywords:  ModelAdmin fields
               Severity:  Release    |  wrapping tuples multiple-fields-
  blocker                            |  per-line
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 According to the current Django 4.2 documentation, this

 {{{
 class FlatPageAdmin(admin.ModelAdmin):
     fields = [("url", "title"), "content"]
 }}}

 should display "url" and "title" on the same line. We use `VersionAdmin`
 (from django-reversion) instead of `admin.ModelAdmin` and everything works
 as expected with Django 4.1.8 but in Django 4.2, additional `<div>` blocks
 cause every field to be on its on new line. Sorry if this is a known
 problem.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34520>
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/01070187be34a84c-a6eb3571-badb-4581-a79a-3f6f8c1c4b41-000000%40eu-central-1.amazonses.com.

Reply via email to