Fix receiver

This commit is contained in:
2018-03-31 16:30:03 +02:00
parent eaad874013
commit 01aa4bcc6e
2 changed files with 13 additions and 14 deletions

View File

@@ -4,8 +4,6 @@ import uuid
from django.contrib.auth.models import User
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
log = logging.getLogger(__name__)
@@ -112,15 +110,3 @@ class ClientData(models.Model):
class Meta:
verbose_name = "Client Data logs"
verbose_name_plural = "Client Data logs"
@receiver(post_save, sender=LocationData)
def test(sender, **kwargs):
from .tasks import process_location_data
process_location_data()
@receiver(post_save, sender=ClientData)
def test(sender, **kwargs):
from .tasks import process_client_data
process_client_data()