Skip to content

Commit

Permalink
Corrigi erro na indexação.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitnnolabs committed Dec 10, 2024
1 parent aafc67b commit 145e05a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions article/search_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ def prepare_updated(self, obj):
return obj.updated.isoformat()

def prepare_creator(self, obj):
return obj.creator
if obj.creator:
return obj.creator.username

def prepare_updated_by(self, obj):
return obj.updated_by
if obj.updated_by:
return obj.updated_by.username

# def prepare_record_type(self, obj):
# return "article"
Expand Down

0 comments on commit 145e05a

Please sign in to comment.