Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 24, 2023
1 parent 163e333 commit d038b79
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions django_fsm_log/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import django

if django.VERSION < (3, 2):
default_app_config = "django_fsm_log.apps.DjangoFSMLogAppConfig"
3 changes: 0 additions & 3 deletions django_fsm_log/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ class StateLogManager(models.Manager):
def get_queryset(self):
return StateLogQuerySet(self.model)

if django.VERSION < (1, 7):
get_query_set = get_queryset

def __getattr__(self, attr, *args):
# see https://code.djangoproject.com/ticket/15062 for details
if attr.startswith("_"):
Expand Down
2 changes: 1 addition & 1 deletion tests/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from .models import Article


@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
inlines = [StateLogInline]


admin.site.register(Article, ArticleAdmin)
4 changes: 2 additions & 2 deletions tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
urlpatterns = [path("admin", admin.site.urls)]
except ImportError:
# django < 2.0
from django.conf.urls import include, url
from django.urls import include, path
from django.contrib import admin

urlpatterns = [url(r"^admin/", include(admin.site.urls))]
urlpatterns = [path("admin/", include(admin.site.urls))]

0 comments on commit d038b79

Please sign in to comment.