Skip to content

Fixed #16436 -- ``annotate().select_related().only()`` = ``ValueError: i... #895

Closed
wants to merge 1 commit into from

2 participants

@mrmachine

...nvalid literal for int() with base 10``

Correctly calculate the aggregate_start offset from loaded fields,
if any are deferred, instead of self.query.select which includes all
fields on the model.

Tai Lee Fixed #16436 -- ``annotate().select_related().only()`` = ``ValueError…
…: invalid literal for int() with base 10``

Correctly calculate the ``aggregate_start`` offset from loaded fields,
if any are deferred, instead of ``self.query.select`` which includes all
fields on the model.
998a22c
@timgraham
Django member

merged in 69f7db1

@timgraham timgraham closed this May 30, 2013
@mrmachine mrmachine deleted the thirstydigital:tickets/16436-annotate-select_related-only branch Feb 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.