The commas are needed because that are tuples, not lists:

>>> tpl = ('a')
>>> type(tpl)
<type 'str'>
>>> tpl = ('a',)
>>> type(tpl)
<type 'tuple'>

Of course:

>>> tpl = ('a', 'b')
>>> type(tpl)
<type 'tuple'>

So for a tuple with more than one value the last comma could be omitted. To be 
clear i left them.

See also: 
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets
-- 
https://code.launchpad.net/~widelands-dev/widelands-website/bug-1723640_news_current_user/+merge/341582
Your team Widelands Developers is requested to review the proposed merge of 
lp:~widelands-dev/widelands-website/bug-1723640_news_current_user into 
lp:widelands-website.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to