Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常像这样的过滤器会返回正确的结果:
Entry.objects.filter(blog__name__startswith='Beatle')
但有时它不会!而且我必须使其 unicode 才能工作:
Entry.objects.filter(blog__name__startswith=u'Beatle')
这是否意味着我们总是必须将 unicode 字符串放在那里,或者这是一个错误?有什么想法吗?谢谢,九月