Commit e304ad9d authored by Lukas Burgey's avatar Lukas Burgey

Remove obsolete receivers

parent 58065194
......@@ -5,17 +5,13 @@ import json
import time
import logging
import pika
from pika.exceptions import ConnectionClosed
import requests
from requests.auth import HTTPBasicAuth
from django.conf import settings
from django.contrib.auth.models import AbstractUser, Group
from django.core.cache import cache
from django.db import models
from django.db.models.signals import post_save, pre_delete
from django.db.models.signals import post_save
from django.dispatch import receiver
from django_mysql.models import JSONField
from rest_framework.authtoken.models import Token
from .auth.v1.models import OIDCConfig
LOGGER = logging.getLogger(__name__)
......@@ -620,31 +616,6 @@ class DeploymentTaskItem(models.Model):
# RECEIVERS
#
#@receiver(post_save, sender=settings.AUTH_USER_MODEL)
#def create_auth_token(sender, instance=None, created=False, **kwargs):
# if instance.user_type == 'apiclient' and created:
# Token.objects.create(user=instance)
#@receiver(post_save, sender=Site)
#def register_at_rabbitmq(sender, instance=None, created=False, **kwargs):
# if not created:
# return
#
# RabbitMQInstance.load().register_site(instance)
#
#
#@receiver(pre_delete, sender=Site)
#def deregister_at_rabbitmq(sender, instance=None, **kwargs):
# RabbitMQInstance.load().deregister_site(instance)
#
#
#@receiver(post_save, sender=Service)
#def update_at_rabbitmq(sender, instance=None, **kwargs):
# for site in instance.site.all():
# RabbitMQInstance.load().update_site(site)
@receiver(post_save, sender=User)
def deactivate_user(sender, instance=None, created=False, **kwargs):
if created:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment