code: def pre_create(sender, model):
      
  
      if isinstance(model, Model) and not model.password:
          model.password = random_str()
docs: Callback before creating a new login
  
      Without a password during create we are forced to
      set the password to something random & complex.