kopia lustrzana https://github.com/wagtail/wagtail
Pass image PK to set_image_focal_point_task as a string
Using a non-integer primary key on an image model is not formally supported or tested, but it's possible someone might try it, and there's no harm in getting into the habit of stringifying PKs that we pass to tasks.stable/6.4.x
rodzic
f29b50d72f
commit
098720698b
|
@ -27,7 +27,7 @@ def post_save_image_feature_detection(instance, **kwargs):
|
|||
if kwargs["raw"] is False and not instance.has_focal_point():
|
||||
# Set the focal point
|
||||
set_image_focal_point_task.enqueue(
|
||||
instance._meta.app_label, instance._meta.model_name, instance.pk
|
||||
instance._meta.app_label, instance._meta.model_name, str(instance.pk)
|
||||
)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue