Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stefanvollmar opened this issue Apr 29, 2023 · 1 comment

Comments

@stefanvollmar
Copy link

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
Copy link
Owner

etianen commented Apr 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants