Add the bing argument to enable .self access
This commit is contained in:
@@ -5,8 +5,8 @@ from mayan.celery import app
|
|||||||
from .models import Installation
|
from .models import Installation
|
||||||
|
|
||||||
|
|
||||||
@app.task(ignore_result=True, max_retries=None, rate_limit='1/m')
|
@app.task(bind=True, ignore_result=True, max_retries=None, rate_limit='1/m')
|
||||||
def task_details_submit():
|
def task_details_submit(self):
|
||||||
try:
|
try:
|
||||||
details = Installation.objects.get()
|
details = Installation.objects.get()
|
||||||
details.submit()
|
details.submit()
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ from .exceptions import AlreadyRegistered
|
|||||||
from .models import RegistrationSingleton
|
from .models import RegistrationSingleton
|
||||||
|
|
||||||
|
|
||||||
@app.task(ignore_result=True, max_retries=None, rate_limit='1/m', throws=(AlreadyRegistered,))
|
@app.task(bind=True, ignore_result=True, max_retries=None, rate_limit='1/m', throws=(AlreadyRegistered,))
|
||||||
def task_registration_register(form_data):
|
def task_registration_register(self, form_data):
|
||||||
try:
|
try:
|
||||||
RegistrationSingleton.register(form_data)
|
RegistrationSingleton.register(form_data)
|
||||||
except (requests.exceptions.Timeout, requests.exceptions.ConnectionError) as exception:
|
except (requests.exceptions.Timeout, requests.exceptions.ConnectionError) as exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user