monim67 / django-bootstrap-datepicker-plus

Bootstrap3/Bootstrap4/Bootstrap5 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django >= 2.0
https://pypi.python.org/pypi/django-bootstrap-datepicker-plus
MIT License
223 stars 61 forks source link

Restrict Pydantic dependency to version 1.x or 2.x #114

Closed mthuurne closed 7 months ago

mthuurne commented 7 months ago

PR Description

Purpose

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.

Revelant docs.

Approach

To prevent the date picker breaking when Pydantic 3.0 is released, the declared Pydantic dependency is limited to versions 1.x and 2.x.

Issues solved in this PR

What has Changed