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)
2.1m questions
2.1m answers
60 comments
57.0k users