Browse Source
Merge pull request #1766 from federicopisanu/feature/expose_confirmation_timestamp
add confirmed_at field to ExampleStateSerializer
pull/1779/head
Hiroki Nakayama
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
backend/examples/serializers.py
|
|
@ -43,5 +43,5 @@ class ExampleSerializer(serializers.ModelSerializer): |
|
|
|
class ExampleStateSerializer(serializers.ModelSerializer): |
|
|
|
class Meta: |
|
|
|
model = ExampleState |
|
|
|
fields = ("id", "example", "confirmed_by") |
|
|
|
read_only_fields = ("id", "example", "confirmed_by") |
|
|
|
fields = ("id", "example", "confirmed_by", "confirmed_at") |
|
|
|
read_only_fields = ("id", "example", "confirmed_by", "confirmed_at") |