#25252: Add a friendly error message when using Queryset.select_related() after values() -------------------------------------+------------------------------------- Reporter: 2roy999 | Owner: nobody Type: | Status: new Cleanup/optimization | Component: Database layer | Version: 1.8 (models, ORM) | Severity: Normal | Resolution: Keywords: queryset values | Triage Stage: Accepted select_related | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by timgraham):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 * type: Bug => Cleanup/optimization * stage: Unreviewed => Accepted Comment: We could add a friendly error message for that case. There's no purpose to using `select_related()` after `values()` because `values()` already selects only the values it needs. -- Ticket URL: <https://code.djangoproject.com/ticket/25252#comment:1> 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/065.8c5070e36405b8a916a16b6194397a68%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.