#6045: Many2Many manager and “TypeError: filter() keywords must be strings”
-------------------------------------+-------------------------------------
               Reporter:  proxor     |          Owner:  Natim
                   Type:  Bug        |         Status:  reopened
              Milestone:             |      Component:  Database layer
                Version:  SVN        |  (models, ORM)
             Resolution:             |       Severity:  Normal
           Triage Stage:  Ready for  |       Keywords:  many2many, related,
  checkin                            |  unicode easy-pickings
    Needs documentation:  0          |      Has patch:  1
Patch needs improvement:  0          |    Needs tests:  0
                  UI/UX:  0          |  Easy pickings:  1
-------------------------------------+-------------------------------------
Changes (by b.leskes@…):

 * ui_ux:   => 0
 * needs_tests:  1 => 0
 * stage:  Accepted => Ready for checkin


Comment:

 I've looked into and indeed the  issue appears at trunk. I've added a
 patch with a test to demonstrate the problem mention by ramen and a
 solution. My solution is different than the previous one by that it
 converts the to param of M2M field to an ascii string. This encoding is
 the only one accepted by getattr.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/6045#comment:18>
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