#31683: Overridden methods ignored in models.DecimalField subclass
-------------------------------------+-------------------------------------
Reporter: Max Rothman | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: custom-model-fields | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by felixxm):
> The docs do not mention anywhere that {{{get_prep_value}}} is expected
to be called in {{{get_db_prep_value}}} on save,...
It's not required, I just wanted to explain why exception is raised in
`.save()` for `PositiveIntegerField`.
> ...nor that {{{DecimalField}}} behaves differently from most other
fields in this respect. Could this be reopened as a documentation bug?
I don't think so, we cannot document implementation details of all builtin
fields.
--
Ticket URL: <https://code.djangoproject.com/ticket/31683#comment:3>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.6046161b49b5657a496d3562b654805c%40djangoproject.com.