Skip to content

Commit 90afce5

Browse files
Update djangocms_versioning/admin.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 393ed23 commit 90afce5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

djangocms_versioning/admin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ def get_queryset(self, request, exclude_parameters=None):
9191

9292
def versioning_change_list_factory(base_changelist_cls):
9393
"""Generate a ChangeList class to use for the content model"""
94-
return type("Versioned" + base_changelist_cls.__name__, (VersioningChangeListMixin, base_changelist_cls), {})
94+
return type(
95+
f"Versioned{base_changelist_cls.__name__}",
96+
(VersioningChangeListMixin, base_changelist_cls),
97+
{},
98+
)
9599

96100

97101
class VersioningAdminMixin:

0 commit comments

Comments
 (0)