#19018: m2m relationships with a through field don't respect types.
-------------------------------------+-------------------------------------
     Reporter:  justinlilly          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by carljm):

 I don't believe this bug is specific to m2ms or through models at all. In
 general, currently you can pass any iterable of instances of any model to
 any `__in` query and the ORM will happily use the PKs of the models you
 give it, without checking whether they are an instance of the right model
 class (or a subclass, or raw PK values which is also supported).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19018#comment:3>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to