I have two questions:
This is my code, which is not successful:
Reporter.objects.delete()
Inside a manager:
def delete_everything(self): Reporter.objects.all().delete() def drop_table(self): cursor = connection.cursor() table_name = self.model._meta.db_table sql = "DROP TABLE %s;" % (table_name, ) cursor.execute(sql)
1.4m articles
1.4m replys
5 comments
57.0k users