Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary usernames as Guest123 #22

Open
aladagemre opened this issue Oct 28, 2012 · 2 comments
Open

Temporary usernames as Guest123 #22

aladagemre opened this issue Oct 28, 2012 · 2 comments

Comments

@aladagemre
Copy link

Wouldn't it be nicer if the temporary usernames were not random strings but Guest1, Guest2, Guest3, etc?

@koobs
Copy link

koobs commented Sep 9, 2015

And/or this is a feature request for settings.py: LAZYSIGNUP_USERNAME_FORMAT which I thoroughly endorse 👍

@danfairs
Copy link
Owner

The way to do this right now is to either:

  • subclass LazyUserManager and override generate_username, and set that as the manager on LazyUser
  • If you've got a custom user model, you can implement a generate_username classmethod on that, and it'll be called to generate a username.

I'm not that keen on adding more settings to be honest. Having a nicer way to specify some code to generate usernames would be the approach I'd prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants