djangosnippets.org: Latest snippets posted by anibalhttp://djangosnippets.org/users/anibal/2008-07-19T01:12:43.282336-05:00anibalTranslated choices fields
2008-07-19T01:12:43.282336-05:00anibalhttp://djangosnippets.org/snippets/896/<ul>
<li>Choices are saved as the key integers.</li>
<li>Admin will show the correct translation in forms.</li>
<li>You can reuse the make_choices function for other choices fields.</li>
<li>Bad side: bin/make_messages.py won't get the choices values automatically, you have to add them in the .po's by hand.</li>
</ul>
Freely redistributable