Skip to content

Commit

Permalink
Bugfix/use keyword arguments in admin render change form method (djan…
Browse files Browse the repository at this point in the history
…go-cms#356)

* Update admin.py

added keyword arguments in render change form in VersioningAdminMixin

* Update CHANGELOG.rst
  • Loading branch information
vipulnarang95 authored Oct 21, 2023
1 parent 8e045dd commit c16c177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion djangocms_versioning/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c16c177

Please sign in to comment.