Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Sep 11, 2023
1 parent d14ee85 commit c833c65
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions djangocms_versioning/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def _add_versioning_menu(self):
if version.source:
name = _("Compare to {source}").format(source=_(version.source.short_name()))
proxy_model = self._get_proxy_model()
url = reverse(f"admin:{proxy_model._meta.app_label}_{proxy_model.__name__.lower()}_compare", args=(version.source.pk,))
url = reverse(
f"admin:{proxy_model._meta.app_label}_{proxy_model.__name__.lower()}_compare",
args=(version.source.pk,)
)

url += "?" + urlencode({
"compare_to": version.pk,
Expand All @@ -221,7 +224,10 @@ def _add_versioning_menu(self):
versioning_menu.add_item(Break())
versioning_menu.add_link_item(
_("Discard Changes"),
url=reverse(f"admin:{proxy_model._meta.app_label}_{proxy_model.__name__.lower()}_discard", args=(version.pk,))
url=reverse(
f"admin:{proxy_model._meta.app_label}_{proxy_model.__name__.lower()}_discard",
args=(version.pk,)
)
)

def _get_published_page_version(self):
Expand Down

0 comments on commit c833c65

Please sign in to comment.