-
### Initial Checks
- [X] I confirm that I'm using Pydantic V2
### Description
I'm using Pydantic with Django models (and FastAPI). I have a use case where I have a DJango model that has a couple of…
-
When settings contains types that are not covered with `to_django` it is passes as-is to underlying variables. So if settings contains any of these types (and much more, any custom):
* Url
* NameE…
-
As the title says I find a little redundant to recreate the `modelchema`
https://django-ninja.dev/guides/response/django-pydantic/ shouldn't the original django-ninja `modelschema `be used?
-
Fields are still included when using repr=False. Look at the following example:
Expected behaviour is to have fields with repr=False to not serialize, or am I missing something? :)
```
from pyd…
-
If you happen to call `config.load()` twice, the latter fails to read from default_files. This leads to difficult to troubleshoot issues like:
```
pydantic_core._pydantic_core.ValidationError: 1 val…
-
Hi dear maintainer. I am writing to you about possible cooperation with another repository: https://github.com/surenkov/django-pydantic-field.
This repository add the database field which can valid…
-
Although I have pydantic 2.0a3 installed I get error `ModuleNotFoundError: No module named 'pydantic.v1'`.
```bash
Traceback (most recent call last):
File "/home/vagrant/.venv/lib/python3.8/sit…
adi- updated
3 months ago
-
**Describe the bug**
When running `python -Wd ca/manage.py check` I get a deprecation warning (paths trimmed for privacy):
```
user@host:~/src/...$ python -Wd ca/manage.py check
.../lib/python…
-
A model using the CountryField() from django-countries if it is defined with ModelSchema to be used as a response, drive to this error :
```
Traceback (most recent call last):
File "/usr/local/…
-
**Describe the bug**
If an authentication callback can only works in sync context, then it will not work on async views.
Example Code:
```python
from ninja.security import django_auth
api…