Skip to content

Commit

Permalink
Added textindexer for person (first_name, last_name, description)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschulz committed May 14, 2024
1 parent 791b448 commit b743677
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/src/plone/edu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
"""Init and utils."""

from collective.person.behaviors.person import IPersonData
from plone.app.dexterity.textindexer import utils
from zope.i18nmessageid import MessageFactory


import logging


_ = MessageFactory("plone.edu")

logger = logging.getLogger("plone.edu")

utils.searchable(IPersonData, "first_name")
utils.searchable(IPersonData, "last_name")
utils.searchable(IPersonData, "description")

0 comments on commit b743677

Please sign in to comment.