Skip to content

Commit

Permalink
Making job_id a read only field
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Maurel committed May 19, 2020
1 parent b7bef02 commit 13571f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ensembl_dbcopy/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Meta:
'end_date',
'user',
'overall_status')
read_only_fields = ['job_id']
extra_kwargs = {
'url': {'view_name': 'requestjob-detail', 'lookup_field': 'job_id'},
}
Expand Down Expand Up @@ -119,6 +120,7 @@ class Meta:
'user',
'overall_status',
'detailed_status')
read_only_fields = ['job_id']

transfer_log = TransferLogSerializer(many=True, source='transfer_logs', read_only=True)

Expand Down

0 comments on commit 13571f0

Please sign in to comment.