#35659: Document db_default behaviour before instances are saved
-------------------------------------+-------------------------------------
Reporter: Markus Andresen | Owner: Jerome
Type: | Cagado
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 5.0
Severity: Normal | Resolution:
Keywords: db_default | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Lily):
Another possible way forward with this would be to override `__bool__` and
other special methods of `DatabaseDefault` to raise an error instead of
silently doing an unexpected thing.
--
Ticket URL: <https://code.djangoproject.com/ticket/35659#comment:7>
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 visit
https://groups.google.com/d/msgid/django-updates/01070199d2d57bfd-23e54971-e45f-4d9f-926c-0971b5702a5f-000000%40eu-central-1.amazonses.com.