diff --git a/pandora/document/tasks.py b/pandora/document/tasks.py index b75fbefe..7bede1a9 100644 --- a/pandora/document/tasks.py +++ b/pandora/document/tasks.py @@ -9,7 +9,7 @@ def extract_fulltext(id): @task(queue='default') -def builk_edit(data, username): +def bulk_edit(data, username): from django.db import transaction from . import models from item.models import Item diff --git a/pandora/document/views.py b/pandora/document/views.py index f22bed81..5fc47466 100644 --- a/pandora/document/views.py +++ b/pandora/document/views.py @@ -133,7 +133,7 @@ def editDocument(request, data): if data['id']: if isinstance(data['id'], list): add_changelog(request, data) - t = tasks.builk_edit.delay(data, request.user.username) + t = tasks.bulk_edit.delay(data, request.user.username) response['data']['taskId'] = t.task_id else: document = models.Document.get(data['id'])