From c16c1779b9906143cb925ac161999bc8d38878b5 Mon Sep 17 00:00:00 2001 From: vipulnarang95 <61502917+vipulnarang95@users.noreply.github.com> Date: Sun, 22 Oct 2023 01:19:28 +0530 Subject: [PATCH] Bugfix/use keyword arguments in admin render change form method (#356) * Update admin.py added keyword arguments in render change form in VersioningAdminMixin * Update CHANGELOG.rst --- CHANGELOG.rst | 1 + djangocms_versioning/admin.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 994c46d0..cdda81be 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ Changelog Unreleased ========== +* fix: Add keyword arguments in VersionAdminMixin render_change_form * feat: Reversable generic foreign key lookup from version * fix: formatted files through ruff to fix tests * fix: Remove version check when evaluating CMS PageContent objects diff --git a/djangocms_versioning/admin.py b/djangocms_versioning/admin.py index d82af111..b8783b76 100644 --- a/djangocms_versioning/admin.py +++ b/djangocms_versioning/admin.py @@ -133,7 +133,7 @@ def render_change_form( "versioning_fallback_change_form_template" ] = super().change_form_template - return super().render_change_form(request, context, add, change, form_url, obj) + return super().render_change_form(request, context, add=add, change=change, form_url=form_url, obj=obj) def has_change_permission(self, request, obj=None): # Add additional version checks