django code for querying of the previous data query is wring code example Example: django delete object SomeModel.objects.filter(id=id).delete()