Last active
August 29, 2015 14:09
-
-
Save TimFletcher/9f1107764dc47545ad27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This works when used in a later query. | |
user_account_maps = models.UserAccountMap.objects.filter(user_extension__user=user) | |
account_ids = [uam.account_id for uam in user_account_maps] | |
# This doesn't | |
account_ids = models.UserAccountMap.objects.filter(user_extension__user=user).values_list('id', flat=True) | |
WHAT'S THE DIFFERENCE? | |
Warning at /dashboard/ | |
Truncated incorrect DOUBLE value: '001A00000047PquIAE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment