Skip to content

Commit

Permalink
Upgrade wagtail to 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tijani-Dia committed Oct 30, 2023
1 parent 6bf6891 commit 1924553
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 15 deletions.
1 change: 1 addition & 0 deletions apps/guide/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
"wagtail.contrib.modeladmin",
"wagtail.contrib.search_promotions",
"wagtail.embeds",
"wagtail.sites",
"wagtail.users",
Expand Down
2 changes: 1 addition & 1 deletion apps/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from rest_framework import serializers
from rest_framework.decorators import api_view
from rest_framework.response import Response
from wagtail.contrib.search_promotions.models import Query
from wagtail.models import Locale, Page
from wagtail.search.models import Query


def search(request):
Expand Down
54 changes: 41 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
django = ">=4.1,<4.2"
wagtail = ">=4.2,<5.0"
wagtail = ">=5.0,<5.1"
django-manifest-loader = "^1.0.0"
lxml = ">=4.9,<5"
djangorestframework = ">=3.13.1,<4.0"
Expand Down

0 comments on commit 1924553

Please sign in to comment.