remove signals module - not needed
Run Tests / Run Tests (push) Failing after 37s Details

This commit is contained in:
James Ravenscroft 2024-12-18 21:36:51 +00:00
parent dee74d7ea4
commit 39d89314aa
1 changed files with 0 additions and 11 deletions

View File

@ -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)