Skip to content

Commit

Permalink
fix: add two time-related fields to AnswerSheetSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Dec 23, 2024
1 parent 9f69514 commit 1bd4a75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/response/serializers/answer_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ def to_representation(self, instance):

class Meta:
model = AnswerSheet
fields = ['id', 'answer_sheet_type', 'user', 'form']
read_only_fields = ['id', 'answer_sheet_type']
fields = ['id', 'answer_sheet_type', 'user',
'form', 'created_at', 'updated_at']
read_only_fields = ['id', 'answer_sheet_type',
'created_at', 'updated_at']

0 comments on commit 1bd4a75

Please sign in to comment.