KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've seen a few examples defining choice fields like so: COUNTRIES = ( ('fr', _('France')), ('de', _('Germany')), ... ) (Source: http://code.djangoproject.com/ticket/5446 Also see: http://djangosnippets.org/snippets/494/ ) What is the meaning of the leading underscores? And why is the second value in the tuple even parenthesized?
Tags (comma-separated)
Save Edits
Cancel