Commit 1f582ca6 authored by Flavio TARSETTI's avatar Flavio TARSETTI

[accounts][signals] pre-commit cleanup

parent 6720584a
......@@ -47,7 +47,7 @@ supervision_request = django.dispatch.Signal()
@receiver(post_save, sender=User)
def setup_user(sender, instance, created, **kwargs):
if created and not instance.pk == settings.ANONYMOUS_USER_ID:
default_group, created = Group.objects.get_or_create(name='Default')
default_group, created = Group.objects.get_or_create(name="Default")
instance.groups.add(default_group)
Token.objects.create(user=instance)
AccountSettings.objects.create(owner=instance)
......
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