def post()

in src/wagtail_localize_smartling/views.py [0:0]


    def post(self, request, *args, **kwargs):
        if self.object:
            due_date = self.object.due_date
            Job.get_or_create_from_source_and_translation_data(
                self.object.translation_source,
                self.object.translations.all(),
                user=request.user,
                due_date=due_date if due_date and due_date >= timezone.now() else None,
            )

        return redirect(self.get_success_url())