Skip to content

Commit

Permalink
Added support for django 4.1 (#75)
Browse files Browse the repository at this point in the history
* Added support for django 4.1
* Reformatted using black
* Updated Readme
  • Loading branch information
Tuo Liu authored Aug 16, 2023
1 parent 7eba828 commit dd13363
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Change Logs

## 0.5.1
- Added support for django 4.1
4 changes: 4 additions & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
```
./dev/local-test.sh -e dj-31 -PSM
```

* Reformat the file using black command:

Run `black .` at the root directory of the project
1 change: 0 additions & 1 deletion garnett/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def serialize(
object_count=0,
**options
):

if fields is not None:
item, queryset = fetch_item_and_convert_to_generator(queryset)
selected_fields = []
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-garnett"
version = "0.5.0"
version = "0.5.1"
description = "Simple translatable Django fields"
authors = ["Aristotle Metadata Enterprises"]
license = "BSD-3-Clause"
Expand All @@ -11,7 +11,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.7"
django = ">3.1, <4.1"
django = ">3.1, <4.2"
langcodes = "~3.3.0"
language-data = "~1.0.1"

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
toxworkdir=/tmp/tox
skipsdist = True
envlist =
dj-{31,32,40} #-db-{pg,sqlite,maria}
dj-{31,32,40,41} #-db-{pg,sqlite,maria}

[testenv]
passenv =
Expand Down

0 comments on commit dd13363

Please sign in to comment.