djangosnippets.org: Latest snippets tagged with 'flush'http://djangosnippets.org/tags/flush/2009-12-21T17:56:20.017930-06:00fast table flush without raw SQL
2009-12-21T17:56:20.017930-06:00dsblankhttp://djangosnippets.org/snippets/1840/<p>Perhaps you don't want to drop a table, but you also want to do something faster than Model.objects.all().delete() but without resorting to raw SQL. This function, clear_tables, will call the sql_flush operation on a list of tables.</p>
Freely redistributable