{{{
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.
* status: new => closed
* resolution: => needsinfo
Comment:
Hrm… I can't seem to reproduce this on a sample project with latest main.
I can place fields side-by-side and it seems to be all working ok.
Is there any more info you could provide? Do you happen to have a small
example project on github or something? 🤔 (Also can you test on main?)
(closing until getting more context)
--
Ticket URL: <https://code.djangoproject.com/ticket/34520#comment:1>
Comment (by Natalia Bidart):
Could you try with the Django's ModelAdmin instead? If you can't reproduce
in that case, then it seems this is something to report to `django-
reversion`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34520#comment:2>
* resolution: needsinfo => fixed
Comment:
I created a new model using `admin.ModelAdmin` instead of `VersionAdmin`
(from django-reversion) leaving everything else unchanged: the problem
seems indeed to be related to `VersionAdmin`: `admin.ModelAdmin` works as
expected; I will report this to the django-reversion project.
--
Ticket URL: <https://code.djangoproject.com/ticket/34520#comment:3>
* resolution: fixed => invalid
Comment:
Marking as "invalid" because it's not an issue in Django itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/34520#comment:4>