#26539: Using Annotation As Update Parameter Generates Invalid SQL -------------------------------------+------------------------------------- Reporter: David Sanders | Owner: PREMANAND Type: Bug | Status: assigned Component: Database layer | Version: master (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Paolo Melchiorre): This bug is still present for me with Django 2.0 and PostgreSQL 9.6. I solved using Subquery in a way similar as suggested in this my StackOverflow answer: https://stackoverflow.com/a/50134728/755343 -- Ticket URL: <https://code.djangoproject.com/ticket/26539#comment:8> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.a86853f14ea7b74d19436d50355c2d39%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.