Skip to content

Commit

Permalink
Version 3.15.1 (#9339)
Browse files Browse the repository at this point in the history
* Version 3.15.1
  • Loading branch information
tomchristie authored Mar 22, 2024
1 parent eb361d2 commit 3285916
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 0 additions & 8 deletions docs/community/3.15-announcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ The current minimum versions of Django still is 3.0 and Python 3.6.

`ModelSerializer` generates validators for [UniqueConstraint](https://docs.djangoproject.com/en/4.0/ref/models/constraints/#uniqueconstraint) (both UniqueValidator and UniqueTogetherValidator)

## ValidationErrors improvements

The `ValidationError` has been aligned with Django's, currently supporting the same style (signature) and nesting.

## SimpleRouter non-regex matching support

By default the URLs created by `SimpleRouter` use regular expressions. This behavior can be modified by setting the `use_regex_path` argument to `False` when instantiating the router.
Expand All @@ -47,10 +43,6 @@ Dependency on pytz has been removed and deprecation warnings have been added, Dj

Searches now may contain _quoted phrases_ with spaces, each phrase is considered as a single search term, and it will raise a validation error if any null-character is provided in search. See the [Filtering API guide](../api-guide/filtering.md) for more information.

## Default values propagation

Model fields' default values are now propagated to serializer fields, for more information see the [Serializer fields API guide](../api-guide/fields.md#default).

## Other fixes and improvements

There are a number of fixes and minor improvements in this release, ranging from documentation, internal infrastructure (typing, testing, requirements, deprecation, etc.), security and overall behaviour.
Expand Down
7 changes: 7 additions & 0 deletions docs/community/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ You can determine your currently installed version using `pip show`:

## 3.15.x series

### 3.15.1

Date: 22nd March 2024

* Fix `SearchFilter` handling of quoted and comma separated strings, when `.get_search_terms` is being called into by a custom class. See [[#9338](https://github.com/encode/django-rest-framework/issues/9338)]
* Revert number of 3.15.0 issues which included unintended side-effects. See [[#9331](https://github.com/encode/django-rest-framework/issues/9331)]

### 3.15.0

Date: 15th March 2024
Expand Down
2 changes: 1 addition & 1 deletion rest_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import django

__title__ = 'Django REST framework'
__version__ = '3.15.0'
__version__ = '3.15.1'
__author__ = 'Tom Christie'
__license__ = 'BSD 3-Clause'
__copyright__ = 'Copyright 2011-2023 Encode OSS Ltd'
Expand Down

0 comments on commit 3285916

Please sign in to comment.