#25787: Add existence checks for related database sets on managers
-------------------------------------+-------------------------------------
     Reporter:  JustusAdam           |                    Owner:
                                     |  andersonresende
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  ManyToMany,          |             Triage Stage:
  contains, in                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 Doesn't `my_student in my_course.teachers.all()` work? I don't think a
 `__contains__` shortcut belongs on the manager -- otherwise users might
 expect the rest of QuerySet comparisons like `__eq__` to work as well.

--
Ticket URL: <https://code.djangoproject.com/ticket/25787#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.edd603bdf726c832ed0074e04a39b816%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to