From 39d89314aa403d4e97317e314b73f7589c3be518 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Wed, 18 Dec 2024 21:36:51 +0000 Subject: [PATCH] remove signals module - not needed --- penparse/webui/signals.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 penparse/webui/signals.py diff --git a/penparse/webui/signals.py b/penparse/webui/signals.py deleted file mode 100644 index e5d6edf..0000000 --- a/penparse/webui/signals.py +++ /dev/null @@ -1,11 +0,0 @@ - -from django.conf import settings -from django.db.models.signals import post_save -from django.dispatch import receiver -from rest_framework.authtoken.models import Token - - -@receiver(post_save, sender=settings.AUTH_USER_MODEL) -def create_auth_token(sender, instance=None, created=False, **kwargs): - if created: - Token.objects.create(user=instance)