-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queryset update method fails Hvad 1.2.1 #250
Comments
Hello, Thanks for reporting. Okay, so let's see. The The main issue is for some reason one of the tables just went missing. Namely, the table from the original request. My guess is it is related to the Actually, for your request you don't need the translations. Could you try to do this instead? nRowsUpdated = GeonamesCity.objects.untranslated().filter(id=field_id).update(published=published) It will be better for performance as it won't have to read and match the translations. Also, it should not trigger this problem. |
Can confirm the issue: That could be fixed by ditching the In any case, when performing requests where you know you don't need translations, use the |
thanks for suggestions! |
…() filter. Will not break if Django decides to relabel tables. Fixes KristianOellegaard#250.
…() filter. Will not break if Django decides to relabel tables. Fixes KristianOellegaard#250.
…() filter. Will not break if Django decides to relabel tables. Fixes KristianOellegaard#250.
Traceback:
https://gist.github.com/jmalinens/4321303b1c6d9c222e96
queryset:
generated sql:
in HVAD:
The text was updated successfully, but these errors were encountered: