On 6/11/08, Frédéric Degraeve <[EMAIL PROTECTED]> wrote: > I use often 'delete' on my tables. I would like to reset everytime the > auto_increment field. Is it possible to use 'truncate' with django > orm?
AFAIK not. But you can run custom SQL http://www.djangoproject.com/documentation/model-api/#executing-custom-sql BTW, did you read dox describing different behaveour of TRUNCATE command between different MySQL versions? HTH, Peter --~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---