Skip to content

Commit e9fe139

Browse files
committed
Restrict Pydantic dependency to version 1.x or 2.x
The `json()` method was renamed to `model_dump_json()` in Pydantic 2.0. The old name is still supported in Pydantic 2.x, but is scheduled for removal in Pydantic 3.0. https://docs.pydantic.dev/2.5/migration/#changes-to-pydanticbasemodel Closes #113
1 parent 4a95b35 commit e9fe139

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
[tool.poetry.dependencies]
3838
python = "^3.8"
3939
Django = ">=2,<6"
40-
pydantic = "*"
40+
pydantic = ">=1,<3"
4141
typing-extensions = "^4.5"
4242

4343
[tool.poetry.group.build.dependencies]

0 commit comments

Comments
 (0)