If i return `datetime.date` or `datetime.datetime` objects from my
overwritten `year_lookup_bounds_for_date_field()` function they will not
be casted to a corresponding string for the database to understand.
i might be making a mistake some place else in my database driver, but my
solution right now is attached here as a patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/24596>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "0001-get_db_prep_value-on-year_lookup_bounds_for_date-
dat.patch" added.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Could you add a regression test for your patch to demonstrate what bug
this fixes?
--
Ticket URL: <https://code.djangoproject.com/ticket/24596#comment:1>
* status: new => closed
* resolution: => needsinfo
Comment:
The code your patch modifies will be moved in
[https://github.com/django/django/pull/4393 this pull request]. It looks
like to me like that PR might solve your issue, although I am not too sure
what the issue is. Please reopen if you can provide details.
--
Ticket URL: <https://code.djangoproject.com/ticket/24596#comment:2>