Skip to content

Commit

Permalink
fix isort and flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnarang95 committed Mar 8, 2024
1 parent 6d78327 commit ab8cc1c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
9 changes: 1 addition & 8 deletions djangocms_versioning/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
from django.shortcuts import redirect, render
from django.template.loader import render_to_string, select_template
from django.template.response import TemplateResponse
from django.urls import path
from django.urls import re_path, reverse
from django.urls import path, re_path, reverse
from django.utils.encoding import force_str
from django.utils.formats import localize
from django.utils.html import format_html, format_html_join
Expand Down Expand Up @@ -159,7 +158,6 @@ def get_versioning_state(self, obj):
"""
return self.get_version(obj).get_state_display()


@admin.display(
description=_("Author"),
ordering="created_by_username_ordering",
Expand All @@ -186,7 +184,6 @@ def get_modified_date(self, obj):
"""
return self.get_version(obj).modified


def _get_preview_url(self, obj):
"""
Return the preview method if available, otherwise return None
Expand Down Expand Up @@ -291,7 +288,6 @@ def get_preview_link(self, obj):
_("Preview"),
)


def _get_field_modifier(self, request, modifier_dict, field):
method = modifier_dict[field]

Expand Down Expand Up @@ -473,7 +469,6 @@ def nr(self, obj):
"""
return obj.number


@admin.display(
description=_("Content"),
ordering="content",
Expand All @@ -489,7 +484,6 @@ def content_link(self, obj):
label=content,
)


def _get_archive_link(self, obj, request, disabled=False):
"""Helper function to get the html link to the archive action
"""
Expand Down Expand Up @@ -671,7 +665,6 @@ def compare_versions(self, request, queryset):

return redirect(url)


def grouper_form_view(self, request):
"""Displays an intermediary page to select a grouper object
to show versions of.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
@admin.register(IncorrectBlogContent)
class IncorrectBlogContentAdmin(ExtendedVersionAdminMixin, admin.ModelAdmin):
pass


Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
@admin.register(FancyPoll)
class FancyPollAdmin(FrontendEditableAdminMixin, admin.ModelAdmin):
pass


0 comments on commit ab8cc1c

Please sign in to comment.