Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Bump Wagtail to 6.0
Browse files Browse the repository at this point in the history
- replace wagtail.contrib.modeladmin with wagtail-modeladmin
- remove search functionality
  • Loading branch information
bengerman13 committed Feb 18, 2024
1 parent 6fadb13 commit 2694d61
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 153 deletions.
179 changes: 110 additions & 69 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pycascades/deployment/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.conf import settings
from wagtail.contrib.modeladmin.helpers import PermissionHelper
from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register
from wagtail_modeladmin.helpers import PermissionHelper
from wagtail_modeladmin.options import ModelAdmin, modeladmin_register

from .models import Deployment, Log, NetlifyConfiguration

Expand Down
4 changes: 1 addition & 3 deletions pycascades/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
"wagtail.snippets",
"wagtail.documents",
"wagtail.images",
"wagtail.search",
"wagtail.admin",
"wagtail_modeladmin",
"wagtail",
"wagtail.contrib.modeladmin",
"bakery",
"wagtailbakery",
"modelcluster",
Expand All @@ -53,7 +52,6 @@
"pycascades.deployment",
"pycascades.jobs",
"home",
"search",
"news",
"sponsors",
"team",
Expand Down
3 changes: 0 additions & 3 deletions pycascades/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.documents import urls as wagtaildocs_urls

from search import views as search_views

from .deployment import urls as netlify_urls


urlpatterns = [
path("django-admin/", admin.site.urls),
path("admin/", include(wagtailadmin_urls)),
path("documents/", include(wagtaildocs_urls)),
path("search/", search_views.search, name="search"),
path("netlify/", include(netlify_urls)),
]

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ python = "3.10.4"
# whenever you update anything else
boto3 = "1.34.39"
django = "5.0.2"
wagtail = "5.2.3"
wagtail = "6.0.1"
wagtail-bakery = "0.8.0"
gunicorn = "21.2.0"
django-heroku = "0.3.1"
Expand All @@ -28,6 +28,7 @@ django-storages = "^1.13.2"
cssmin = "^0.2.0"
jsmin = "^3.0.0"
pynetlify = "^0.1.1"
wagtail-modeladmin = "2.0.0"


[tool.poetry.dev-dependencies]
Expand Down
Empty file removed search/__init__.py
Empty file.
38 changes: 0 additions & 38 deletions search/templates/search/search.html

This file was deleted.

37 changes: 0 additions & 37 deletions search/views.py

This file was deleted.

0 comments on commit 2694d61

Please sign in to comment.