Skip to content

Commit

Permalink
Merge pull request #80 from Ensembl/update_dbcopy
Browse files Browse the repository at this point in the history
Restoring job_id in the RequestJob detail serializer. As a result job…
  • Loading branch information
thomasmaurel authored May 19, 2020
2 parents e41c8fe + 13571f0 commit 9c1be18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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 All @@ -100,6 +101,7 @@ class RequestJobDetailSerializer(BaseUserTimestampSerializer):
class Meta:
model = RequestJob
fields = (
'job_id',
'transfer_log',
'src_host',
'src_incl_db',
Expand All @@ -118,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 9c1be18

Please sign in to comment.