Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit bd8571c

Browse files
committed
Fixed referencing object with id
1 parent c0c234c commit bd8571c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dj_elastictranscoder/transcoder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ def create_job_for_object(self, obj):
5353
job = EncodeJob()
5454
job.id = self.message['Job']['Id']
5555
job.content_type = content_type
56-
job.object_id = obj.id
56+
job.object_id = obj.pk
5757
job.save()

0 commit comments

Comments
 (0)