Skip to content

Commit

Permalink
Merge pull request #4021 from freelawproject/3033-develop-v4-people-s…
Browse files Browse the repository at this point in the history
…earch-api

3033 Introduced V4 People Search API
  • Loading branch information
mlissner authored May 17, 2024
2 parents 56521b0 + 4e5acf0 commit 72bdb60
Show file tree
Hide file tree
Showing 15 changed files with 1,842 additions and 660 deletions.
5 changes: 4 additions & 1 deletion cl/lib/document_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ def to_representation(self, value):

class NoneToListField(serializers.ListField):
"""A custom ListField that returns an empty list when the original value is
None; otherwise, it returns the original value."""
None; otherwise, it returns the original value.
This can be removed from some fields once a People re-index is done and
https://github.com/elastic/elasticsearch-dsl-py/issues/1819 solved.
"""

def get_attribute(self, instance):
value = super().get_attribute(instance)
Expand Down
Loading

0 comments on commit 72bdb60

Please sign in to comment.