surenkov / django-pydantic-field

Django JSONField with Pydantic models as a Schema
https://pypi.org/project/django-pydantic-field/
Other
116 stars 12 forks source link

ImportError with pydantic 1.9.1 #24

Closed Arondit closed 1 year ago

Arondit commented 1 year ago

Trying to use this lib with pydantic==1.9.1 leads to import error. ImportError: cannot import name 'get_config' from 'pydantic.config' In 1.9.1 there is no this function, you can check it here https://github.com/pydantic/pydantic/releases/tag/v1.9.1

If you don't want to fix backward compatibility so far, you could just fix required version of pydantic.

surenkov commented 1 year ago

Hi @Arondit, thank you for pointing out on this issue.

I just released v0.2.8 with added (and tested on current test suite) support of pydantic 1.9.*; feel free to reopen this ticket if you find out anything else specific to this release.

Arondit commented 1 year ago

Hi @surenkov , thank you very much for so fast reaction. Everything is fine, i've checked.