I want username field is automatically filled with this value:
username = str(n);
where n is a number ( autoincremented or random ).
.
I tried to add this in save method:
username = str(random.randint(0,1000000)
but there is a collision problem when n is the same for 2 users.
.
How do I do this ?
Thanks ^_^