#6045: Many2Many manager and “TypeError: filter() keywords must be strings”
---------------------------------------------------+------------------------
Reporter: proxor | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords: many2many,
related, unicode easy-pickings
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by gonz):
* cc: gonz (added)
* version: 1.0 => SVN
Comment:
This bug exists in svn, so I'm changing version.
If you use a unicode string in a ManyToManyField realated_name attribute,
manager's count(), all(), etc... will fail. Hope this get fixed soon but
meanwhile you can workaround this by not using unicode strings on this
specific atribute.
Tested the patch by proxor and its working but I'm attaching a new patch
with Terry Ma and SmileyChris suggestions.
--
Ticket URL: <http://code.djangoproject.com/ticket/6045#comment:7>
Django <http://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
-~----------~----~----~----~------~----~------~--~---