Issue #6 Se crea un social_networks al crear un usuario
This commit is contained in:
@@ -59,6 +59,11 @@ class User(AbstractBaseUser):
|
||||
|
||||
REQUIRED_FIELDS = ['email']
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
super().save(*args, **kwargs)
|
||||
social_networks = SocialNetworks(user=self)
|
||||
social_networks.save()
|
||||
|
||||
@staticmethod
|
||||
def has_perm(*args, **kwargs):
|
||||
"""Los usuarios siempre tienen permiso"""
|
||||
|
||||
Reference in New Issue
Block a user