---
title: "Django 5.1.6 release notes"
version: 5.1
locale: zh-hans
source: https://docs.djangoproject.com/zh-hans/5.1/releases/5.1.6/
canonical: https://djangodocs.dev/zh-hans/5.1/releases/5.1.6/
---
# Django 5.1.6 release notes

*February 5, 2025*

Django 5.1.6 fixes several bugs in 5.1.5.

## 漏洞修复

- Fixed a regression in Django 5.1.5 that caused `validate_ipv6_address()`
  and `validate_ipv46_address()` to crash when handling non-string values
  ([#36098](https://code.djangoproject.com/ticket/36098)).
- Fixed a regression in Django 5.1 where password fields, despite being set to
  `required=False`, were still treated as required in forms derived from
  [`BaseUserCreationForm`](/zh-hans/5.1/topics/auth/default/#django.contrib.auth.forms.BaseUserCreationForm) ([#36140](https://code.djangoproject.com/ticket/36140)).
