reenable request processor

This commit is contained in:
2017-02-11 18:59:42 +01:00
parent 0b1c7675f0
commit e84b2f54a9
5 changed files with 16 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ from django.db.models.signals import post_save
from django.dispatch import receiver
from django.core.mail import mail_admins
from celery import shared_task
from .tasks import request_process_location_data
class LocationData(models.Model):
@@ -102,7 +103,7 @@ class Accounting(models.Model):
@receiver(post_save, sender=LocationData)
def test(sender, **kwargs):
process_location_data()
request_process_location_data.delay()
@shared_task