ManyRelatedManager.add() acting funny?

34 views
Skip to first unread message

Jeff Blaine

unread,
Aug 13, 2011, 8:44:04 PM8/13/11
to django...@googlegroups.com
What happened here?  Do I not understand .add()?  I would have expected to see
[(u'rcf_clients',)] not [(u'rcf_clients', u'')]

>>> print d.tags.values_list()
[]
>>> d.tags.add('rcf_clients')
>>> d.save()
>>> print d.tags.values_list()
[(u'rcf_clients', u'')]
>>>

Jeff Blaine

unread,
Aug 13, 2011, 8:57:49 PM8/13/11
to django...@googlegroups.com
Nevermind.  I get it.  'tags' has another field, description, which is what the extra u'' is for.
Reply all
Reply to author
Forward
0 new messages