|
@@ -15,10 +15,8 @@ def set_unusable_password(sender, instance, **kwargs):
|
|
|
|
|
|
@receiver(pre_save, sender=User, dispatch_uid='set_default_username')
|
|
|
def set_default_username(sender, instance, **kwargs):
|
|
|
- print(1, instance.username)
|
|
|
if not instance.username:
|
|
|
instance.username = slugify(instance.get_full_name())
|
|
|
- print(2, instance.username)
|
|
|
|
|
|
|
|
|
@receiver(post_save, sender=User, dispatch_uid='create_profile')
|