django-lazysignup
django-lazysignup copied to clipboard
Temporary usernames as Guest123
trafficstars
Wouldn't it be nicer if the temporary usernames were not random strings but Guest1, Guest2, Guest3, etc?
And/or this is a feature request for settings.py: LAZYSIGNUP_USERNAME_FORMAT which I thoroughly endorse :+1:
The way to do this right now is to either:
- subclass LazyUserManager and override
generate_username, and set that as the manager onLazyUser - If you've got a custom user model, you can implement a
generate_usernameclassmethod 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.