Skip to content

Commit

Permalink
Fixed created_by field in patient log (#888)
Browse files Browse the repository at this point in the history
Fixed created_by field value
  • Loading branch information
aeswibon authored Jun 26, 2022
1 parent 6024958 commit 86ab77b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/facility/api/serializers/daily_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def create(self, validated_data):
daily_round_obj.created_by = self.context["request"].user
daily_round_obj.last_edited_by = self.context["request"].user
daily_round_obj.consultation.last_updated_by_telemedicine = validated_data["last_updated_by_telemedicine"]
daily_round_obj.consultation.save(
daily_round_obj.save(
update_fields=[
"last_updated_by_telemedicine",
"consultation__last_updated_by_telemedicine",
"created_by",
"last_edited_by",
]
Expand Down

0 comments on commit 86ab77b

Please sign in to comment.