Re: how to Generate a 5 character unique alpha-numeric string

2011-04-11 Thread Sam Walters
Hi If this is a sequence then why not use python list comprehensions, nest them together and concatenate the different parts into a string. http://docs.python.org/tutorial/datastructures.html#nested-list-comprehensions you could even do it with recursive method calls. Point is. If its not 'random+

Re: how to Generate a 5 character unique alpha-numeric string

2011-04-11 Thread werefr0g
Well, I don't think it is safe but you can first retrive Max('pk') then, you can increment its base 36 related number then use the result's string equivalent. Le 11/04/2011 08:48, GKR a écrit : I meant to say not random. serial eg: .. .. 2A00A 2A00B .. .. .. 2A00Z 2A010 2A011 .. ... 2

Re: how to Generate a 5 character unique alpha-numeric string

2011-04-10 Thread GKR
I meant to say not random. serial eg: .. .. 2A00A 2A00B .. .. .. 2A00Z 2A010 2A011 .. ... 2A019 2A01A 2A01B -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: how to Generate a 5 character unique alpha-numeric string

2011-04-10 Thread gladys
arkey wrote: > Ermm.. Why not just use a UUID? > > On 10 April 2011 18:48, GOUTAM KUMAR RANA wrote: > > > > > > > > > how to Generate a 5 character unique alpha-numeric string to use as primary > > key in my model. > > > how to show the

Re: how to Generate a 5 character unique alpha-numeric string

2011-04-10 Thread David Markey
Ermm.. Why not just use a UUID? On 10 April 2011 18:48, GOUTAM KUMAR RANA wrote: > how to Generate a 5 character unique alpha-numeric string to use as primary > key in my model. > > how to show the generated string in a particular textbox when loading a > particular form or pag

how to Generate a 5 character unique alpha-numeric string

2011-04-10 Thread GOUTAM KUMAR RANA
how to Generate a 5 character unique alpha-numeric string to use as primary key in my model. how to show the generated string in a particular textbox when loading a particular form or page? Please help Thanks -- You received this message because you are subscribed to the Google Groups

how to Generate a 5 character unique alpha-numeric string to use as primary key in my model.

2011-04-09 Thread GOUTAM KUMAR RANA
how to Generate a 5 character unique alpha-numeric string to use as primary key in my model. how to show the generated string in a particular textbox when loading a particular form or page? Please help Thanks -- You received this message because you are subscribed to the Google Groups