Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
66be7565
Commit
66be7565
authored
Dec 24, 2023
by
Frederick Mixell
Browse files
update to autocomplete syntax
parent
f0a3a22d
Changes
1
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/models.py
View file @
66be7565
...
...
@@ -94,9 +94,9 @@ class AbstractVideo(CollectionMember, index.Indexed, models.Model):
objects
=
VideoQuerySet
.
as_manager
()
search_fields
=
list
(
CollectionMember
.
search_fields
)
+
[
index
.
Search
Field
(
'title'
,
partial_match
=
True
,
boost
=
10
),
index
.
Autocomplete
Field
(
'title'
,
boost
=
10
),
index
.
RelatedFields
(
'tags'
,
[
index
.
SearchField
(
'name'
,
partial_match
=
True
,
boost
=
10
),
index
.
AutocompleteField
(
'name'
,
boost
=
10
),
]),
index
.
FilterField
(
'uploaded_by_user'
),
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment