Skip to content

Commit 8829ed8

Browse files
Update djangocms_versioning/helpers.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent fd15b11 commit 8829ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangocms_versioning/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def versioning_admin_factory(admin_class: type[admin.ModelAdmin], mixin: type) -
4949
if not issubclass(admin_class, mixin):
5050
# If the admin_class is not a subclass of mixin, we create a new class
5151
# that combines both.
52-
return type("Versioned" + admin_class.__name__, (mixin, admin_class), {})
52+
return type(f"Versioned{admin_class.__name__}", (mixin, admin_class), {})
5353
return admin_class
5454

5555

0 commit comments

Comments
 (0)