widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #12931
Re: [Merge] lp:~widelands-dev/widelands-website/bug-1723640_news_current_user into lp:widelands-website
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.
References