Esempio n. 1
0
def _create_database_rollback(self, rollback_from, task, user):
    task = TaskHistory.register(request=self.request,
                                task_history=task,
                                user=user,
                                worker_name=get_worker_name())

    from tasks_create_database import rollback_create
    rollback_create(rollback_from, task, user)
Esempio n. 2
0
def _create_database_rollback(self, rollback_from, task, user):
    task = TaskHistory.register(
        request=self.request, task_history=task, user=user,
        worker_name=get_worker_name()
    )

    from tasks_create_database import rollback_create
    rollback_create(rollback_from, task, user)