From 20589acdf3cb804686f0a549966af64f6b60eef1 Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Tue, 30 Jul 2024 10:29:59 +0200 Subject: [PATCH 1/2] don't change EOL for js map files --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7bfdafa43..f22b9c738 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: check-case-conflict - id: check-yaml - id: end-of-file-fixer - exclude_types: [pofile, javascript] + exclude_types: [pofile, javascript, map] - id: trailing-whitespace - id: mixed-line-ending language_version: python3 From e2a001d2d39e373d4e3f27f465c3c958ae746093 Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Tue, 30 Jul 2024 10:33:31 +0200 Subject: [PATCH 2/2] fix for gazettes and django 4.2 --- gazettes/urls.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gazettes/urls.py b/gazettes/urls.py index 5c5544d37..00daa731d 100644 --- a/gazettes/urls.py +++ b/gazettes/urls.py @@ -1,5 +1,4 @@ -from django.conf.urls import url -from django.urls import include, path +from django.urls import include, path, re_path from django.views.generic import RedirectView from gazettes import views @@ -11,7 +10,7 @@ path("gazettes", RedirectView.as_view(pattern_name="home")), path("gazettes//", views.JurisdictionView.as_view(), name="jurisdiction"), path("gazettes//", views.YearView.as_view(), name="year"), - url( + re_path( r"^gazettes/(?P.{5,})$", views.OldGazetteView.as_view(), name="gazette_old" ), path("", include("peachjam.urls")),