mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Pass the User ID instead of the user object
This commit is contained in:
@@ -7,7 +7,7 @@ from django.db.models import signals
|
||||
# Signals that the tasks need to listen for
|
||||
def eveapi_deleted(sender, instance, **kwargs):
|
||||
if instance.user:
|
||||
update_user_access.delay(user=instance.user)
|
||||
update_user_access.delay(user=instance.user.id)
|
||||
|
||||
signals.post_delete.connect(eveapi_deleted, sender=EVEAccount)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user