#25298: Forbid QuerySet filtering by a related field that expects a single value
when multiple values are returned
-------------------------------------+-------------------------------------
     Reporter:  Tim Graham           |                    Owner:  Tyler
         Type:                       |  Gehrs
  Cleanup/optimization               |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * needs_better_patch:  0 => 1

Comment:

 I don't think there is a real value in documenting this discrepancy. This
 is an SQLite caveat that will go unnoticed in most cases, leaving a bug in
 users code. Adding a warning to docs will not change this or help in any
 way.

 Please first start a discussion on the Django Forum, where you'll reach a
 wider audience, and see what other think. Assuming there is no way to
 detect the number of rows in advance (as far as I'm aware there is not),
 I'd close it as "wontfix" (or "invalid").

 Marking ticket as need improvement pending discussion.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/25298#comment:11>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018d6901da91-91dc15da-7f70-449a-9559-95305466962e-000000%40eu-central-1.amazonses.com.

Reply via email to