def grant_update_email_task(self, pk, retry: bool = True) -> None: """ :param self: :param pk: :return: """ activity = Activity.objects.get(pk=pk) grant_update_email(activity)
def grant_update_email_task(self, pk, retry: bool = True) -> None: """ :param self: :param pk: :return: """ activity = Activity.objects.get(pk=pk) grant_update_email(activity) from django.utils import timezone grant = activity.grant grant.last_update = timezone.now() grant.save()