* status: closed => new
* type: Bug => Cleanup/optimization
* resolution: invalid =>
* stage: Unreviewed => Accepted
Comment:
> Notice that I'm using the Model validation, if I'm not mistaken and it
refers to creating objects with `MyModel.objects.create`
Not really, `.create()` and `.save()` don't call `full_clean()` (see
[https://docs.djangoproject.com/en/4.1/ref/models/instances/#validating-
objects docs]). We added extra guards in #33033 because on some databases
(SQLite and PostgreSQL) `NaN` values are accepted without raising any
database-level errors.
I agree that we should add the same checks for `"nan"` strings.
--
Ticket URL: <https://code.djangoproject.com/ticket/33954#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.