Changes between Initial Version and Version 1 of Ticket #27719, comment 9


Ignore:
Timestamp:
Jun 25, 2019, 9:06:01 AM (5 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27719, comment 9

    initial v1  
    1 [https://groups.google.com/d/msg/django-developers/OmAtiBbq-EM/8ArMxdKiBQAJ There was a recent post to django-developers] where a user was trying to use `annotate(foo=expr).defer('foo')` for this exact purpose. Their use case was more about avoiding the double evaluation of an `EXISTS` expression which is probably fixed on the master branch by 1ca825e4dc186da2b93292b5c848a3e5445968d7 and could be addressed by #25367 which was previously mentioned but it remains that adding annotation support to `defer` and `only` could be another solution for this issue.
     1[https://groups.google.com/d/msg/django-developers/OmAtiBbq-EM/8ArMxdKiBQAJ There was a recent post to django-developers] where a user was trying to use `annotate(foo=expr).defer('foo')` for this exact purpose. Their use case was more about avoiding the double evaluation of an `EXISTS` expression which is probably fixed on the master branch by 1ca825e4dc186da2b93292b5c848a3e5445968d7 and could be addressed by #25367 which was previously mentioned but it remains that adding annotation support to `defer` and `only` could be another solution for this issue that wouldn't require adding another method to the `QuerySet` API.
Back to Top