#30000: QuerySet constructed with .union() should raise an exception on unsupported filter() attempt. -------------------------------------+------------------------------------- Reporter: thoha | Owner: Hasan | Ramezani Type: Bug | Status: assigned Component: Database layer | Version: 1.11 (models, ORM) | Severity: Normal | Resolution: Keywords: queryset union | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by thoha): Replying to [comment:7 Hasan Ramezani]: > should we raise an exception for all `filter()` attempts? or just for unsupported one? > if we should we raise an exception just for unsupported, is there any way to find them? Unsupported ones, I'd think. For my original problem, a simple check would be to do a count on the number of selections made in the form and comparing that to the number of records returned - normally they should match. -- Ticket URL: <https://code.djangoproject.com/ticket/30000#comment:8> 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/063.d919afe6a50a5ae473cfc7d82957faf1%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.