#20205: PositiveIntegerfield does not handle empty values well
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner: AmiZya
Type: Bug | Status: assigned
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 1
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by charettes):
> The developer is responsible for making sure they have a valid value."
This is odd to me -- the developer is responsible for making sure that
fields have a valid value, but where would that appropriately be done?
I think a valid use case is to use the `clean()` method of the model
associated with the field to provide such a value.
--
Ticket URL: <https://code.djangoproject.com/ticket/20205#comment:20>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.707d9783d7fe67b92d26aec624084b0f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.