Django: Delete all objects in Model

To clear all the data from a django table, simply call:

ModelName.objects.all().delete()
 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog