diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a9169c4..fd98f64a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ repos: - repo: "https://github.com/ambv/black" - rev: "stable" + rev: "21.4b2" hooks: - id: "black" language_version: "python3" - - repo: "https://github.com/pre-commit/pre-commit-hooks" - rev: "v2.3.0" + - repo: "https://gitlab.com/pycqa/flake8" + rev: "3.9.1" hooks: - id: "flake8" - repo: "https://github.com/pre-commit/mirrors-isort" - rev: "v4.3.21" + rev: "v5.8.0" hooks: - id: "isort" diff --git a/src/info/admin.py b/src/info/admin.py index f2b80031..82eb1599 100644 --- a/src/info/admin.py +++ b/src/info/admin.py @@ -6,6 +6,7 @@ from .models import InfoCategory, InfoItem @admin.register(InfoItem) class InfoItemAdmin(VersionAdmin): + save_as = True list_filter = ["category", "category__team__camp"] list_display = ["headline"] @@ -17,7 +18,8 @@ class InfoItemInlineAdmin(admin.StackedInline): @admin.register(InfoCategory) -class InfoCategorydmin(admin.ModelAdmin): +class InfoCategoryAdmin(admin.ModelAdmin): + save_as = True list_filter = ["team__camp"] list_display = ["headline"] search_fields = ["headline", "body"] diff --git a/src/templates/base.html b/src/templates/base.html index a969be38..ddd3ed42 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -81,8 +81,8 @@