Skip to content

Commit

Permalink
[#192] Fix self.updated_by in case serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Jan 5, 2024
1 parent 49911fd commit 90e306b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/models/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def to_case_detail(self) -> CaseDetailDict:
"logo": self.logo,
"created_by": self.created_by_user.email,
"created_at": self.created_at.strftime("%Y-%m-%d %H:%M:%S"),
"updated_by": self.updated_by_user.email,
"updated_by": self.updated_by_user.email
if self.updated_by
else None,
"updated_at": self.updated_at.strftime("%Y-%m-%d %H:%M:%S"),
"segments": [
ps.serialize_with_answers for ps in self.case_segments
Expand Down

0 comments on commit 90e306b

Please # to comment.