No, it is not. You need to add a comma:
fields = ('title',)
This is the comma that makes this tuple. The brackets here are simply optional:
>>> ('title') 'title' >>> 'title', ('title',)
Brackets, of course, are still a good idea, with root brackets it is easier to notice visually, and in brackets we distinguish a tuple in a function call from other parameters ( foo(('title',), 'bar') differs from foo('title', 'bar') ).
source share