django-lazysignup icon indicating copy to clipboard operation
django-lazysignup copied to clipboard

Temporary usernames as Guest123

Open aladagemre opened this issue 13 years ago • 2 comments
trafficstars

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

aladagemre avatar Oct 28 '12 20:10 aladagemre

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

koobs avatar Sep 09 '15 08:09 koobs

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.

danfairs avatar Nov 30 '15 20:11 danfairs