Skip to content

Commit ab7533e

Browse files
committed
Remove unneeded use_json_field, get Query from wagtail.contrib.search_promotions.
1 parent fb04322 commit ab7533e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/alloydflanagan/home/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class HomePage(Page):
1717
('text', RichTextBlock()), #probably will use custom type later
1818
('image', ImageChooserBlock()),
1919
('header', HeaderBlock()),
20-
], use_json_field=True, blank=True)
20+
], blank=True)
2121

2222
content_panels = Page.content_panels + [
2323
FieldPanel("intro", classname="full"),

app/alloydflanagan/search/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from django.template.response import TemplateResponse
33

44
from wagtail.models import Page
5-
from wagtail.search.models import Query
5+
from wagtail.contrib.search_promotions.models import Query
66

77

88
def search(request):

app/alloydflanagan/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"django.contrib.contenttypes",
3030
"django.contrib.sessions",
3131
"django.contrib.messages",
32+
"wagtail.contrib.search_promotions",
3233
"django.contrib.staticfiles",
3334
"wagtail.contrib.forms",
3435
"wagtail.contrib.redirects",

0 commit comments

Comments
 (0)