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+
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
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
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
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 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.
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
7 matches
Mail list logo