#17527: Better TypeError: m2m.add(wrong_type)
----------------------------------------------+--------------------
     Reporter:  guettli                       |      Owner:  nobody
         Type:  Cleanup/optimization          |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.3
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  1
Easy pickings:  1                             |      UI/UX:  0
----------------------------------------------+--------------------
 Here is a small patch, to give a better error message, if you try to add a
 wrong type to a many to many field.


 {{{
 TypeError: 'Permission' instance expected, got <FooModel abc>
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17527>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to