Re: Using self generated primary key.

2008-06-04 Thread Cliff
Hi jonknee Thanks a lot for your reply. I'll give it a try now. By the way, I'm happy with incrementing IDs, however, it will cause conflicts when I need to import data from another database. Thanks Cliff On Jun 4, 10:50 pm, jonknee <[EMAIL PROTECTED]> wrote: > On Jun 4, 5:42 pm, "Cliff Liang

Re: Using self generated primary key.

2008-06-04 Thread jonknee
On Jun 4, 5:42 pm, "Cliff Liang Xuan" <[EMAIL PROTECTED]> wrote: > Basically I want to use a random 7 digit string as the primary key of table > Foo, because this id is system generated I don't want to show it in the > admin interface. How to achieve this, please? You should only have trusted

Using self generated primary key.

2008-06-04 Thread Cliff Liang Xuan
Hi,I've started using Django recently and really enjoyed it until I ran into a problem that I cannot find a solution on the net. Really hope someone can cast some light on me. Basically I want to use a random 7 digit string as the primary key of table Foo, because this id is system generated I