Skip to content

Commit bce4723

Browse files
committed
Update async SLA expiration date update to filter by product ID
1 parent acd7310 commit bce4723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dojo/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ def save(self, *args, **kwargs):
12561256
super(SLA_Configuration, sla_config).save()
12571257
# launch the async task to update all finding sla expiration dates
12581258
from dojo.sla_config.helpers import async_update_sla_expiration_dates_sla_config_sync # noqa: I001, PLC0415 circular import
1259-
async_update_sla_expiration_dates_sla_config_sync(sla_config, [self])
1259+
async_update_sla_expiration_dates_sla_config_sync(sla_config, Product.objects.filter(id=self.id))
12601260

12611261
def get_absolute_url(self):
12621262
return reverse("view_product", args=[str(self.id)])

0 commit comments

Comments
 (0)