On 1/11/06, Dody Suria Wijaya <[EMAIL PROTECTED]> wrote: > I think you meant __dict__, instead of __dict__(). Secondly, that would > still copy the primary key, which turns into update query on save. > An easy way to duplicate in choice case would be to set id as False > value (0, None, or False), and thus force the saving routine to generate > a new one and do an insert query: > > a.id = None > a.save()
You're right -- my mistake! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org