Issue 3543 - Webhooks: problem extracting the story points from a user story

remotes/origin/logger
Alejandro Alonso 2016-01-08 08:50:06 +01:00 committed by David Barragán Merino
parent ea842a0c56
commit 93376a5fbb
2 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.db import connection
from django.conf import settings from django.conf import settings
from django.utils import timezone from django.utils import timezone
@ -62,6 +63,6 @@ def on_new_history_entry(sender, instance, created, **kwargs):
args = [webhook["id"], webhook["url"], webhook["key"], obj] + extra_args args = [webhook["id"], webhook["url"], webhook["key"], obj] + extra_args
if settings.CELERY_ENABLED: if settings.CELERY_ENABLED:
task.delay(*args) connection.on_commit(lambda: task.delay(*args))
else: else:
task(*args) connection.on_commit(lambda: task(*args))

View File

@ -23,7 +23,7 @@ from .. import factories as f
from taiga.projects.history import services from taiga.projects.history import services
pytestmark = pytest.mark.django_db pytestmark = pytest.mark.django_db(transaction=True)
def test_new_object_with_one_webhook(settings): def test_new_object_with_one_webhook(settings):