when filtering using __gte on models.DateTimeField the printed query doesn't wrap the searched date with an apostrophe ' this may lead to undesired results in postgres database:
WHERE ("appname_tablename"."creation_date" >= 2021-06-27 11:08:29.311284+00:00 AND "appname_tablename"."node_id" = 111)
as asked on SO here
please inform if this is a bug, the behavior has been reported or fixed --
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/66e8c7be-94aa-4163-82da-2cee532de26en%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment