#33229: BaseDatabaseOperations.adapt_datetimefield_value and
adapt_timefield_value() crash on expressions
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
| SwastikTripathi
Type: Bug | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by SwastikTripathi):
* owner: (none) => SwastikTripathi
* status: new => assigned
* has_patch: 0 => 1
Comment:
I'm adding {{{ if hasattr(value, 'resolve_expression'):}}} the condition
to adapt_datetimefield_value() and adapt_timefield_value() in
django/db/backends/postgresql/operations.py and
django/db/backends/base/operations.py
Do you know why it wasn't added there?
--
Ticket URL: <https://code.djangoproject.com/ticket/33229#comment:4>
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/067.01779f793a65627737da93a01a6e9c73%40djangoproject.com.