---
title: "Django 1.10.4 版本发行说明"
version: 4.0
locale: zh-hans
source: https://docs.djangoproject.com/zh-hans/4.0/releases/1.10.4/
canonical: https://djangodocs.dev/zh-hans/4.0/releases/1.10.4/
---
# Django 1.10.4 版本发行说明

*2016 年 12 月 1 日*

Django 1.10.4 修复了 1.10.3 中的几个漏洞。

## 漏洞修复

- Quoted the Oracle test user's password in queries to fix the "ORA-00922:
  missing or invalid option" error when the password starts with a number or
  special character ([#27420](https://code.djangoproject.com/ticket/27420)).
- Fixed incorrect `app_label` / `model_name` arguments for
  `allow_migrate()` in `makemigrations` migration consistency checks
  ([#27461](https://code.djangoproject.com/ticket/27461)).
- Made `Model.delete(keep_parents=True)` preserve parent reverse
  relationships in multi-table inheritance ([#27407](https://code.djangoproject.com/ticket/27407)).
- Fixed a `QuerySet.update()` crash on SQLite when updating a
  `DateTimeField` with an `F()` expression and a `timedelta`
  ([#27544](https://code.djangoproject.com/ticket/27544)).
- Prevented `LocaleMiddleware` from redirecting on URLs that should return
  404 when using `prefix_default_language=False` ([#27402](https://code.djangoproject.com/ticket/27402)).
- Prevented an unnecessary index from being created on an InnoDB `ForeignKey`
  when the field was added after the model was created ([#27558](https://code.djangoproject.com/ticket/27558)).
