etianen / django-reversion

django-reversion is an extension to the Django web framework that provides version control for model instances.
https://django-reversion.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.05k stars 489 forks source link

Django 4.2 with VersionAdmin: wrapping in tuples does not have any effect (each field on separate line) #939

Open stefanvollmar opened 1 year ago

stefanvollmar commented 1 year ago

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 - and it does in our project. However, in the same project, when using VersionAdmin (from django-reversion) instead of admin.ModelAdmin, everything works as expected with Django 4.1.8 but in Django 4.2, additional

blocks cause every field to be on its on new line. Sorry if this is a known problem.

etianen commented 1 year ago

That is definitely not expected or known. I'd take a PR to fix.