#6045: Many2Many manager and “TypeError: filter() keywords must be strings”
-------------------------------------+-------------------------------------
Reporter: proxor | Owner: Natim
Type: Bug | Status: closed
Milestone: | Component: Database layer
Version: SVN | (models, ORM)
Resolution: fixed | 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
-------------------------------------+-------------------------------------
Comment (by mtredinnick):
In [16682]:
{{{
#!CommitTicketReference repository="" revision="16682"
Make ManyToManyField model references more robust.
In r16679 a test was added to verify something had been fixed when a
unicode string type was passed in as a model name. The name has to be
ASCII convertible, but in Python 2.6 and earlier, it must also have str
type.
This commit fixes the problem for earlier Python versions and is almost
identical to a patch from b.leskes in #6045.
Fixes #16689. Refs #6045.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/6045#comment:23>
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.