djangosnippets.org: Latest snippets posted by djmhttp://djangosnippets.org/users/djm/2010-12-16T08:46:43.932636-06:00djmAccordion changelist admin
2010-12-16T08:46:43.932636-06:00djmhttp://djangosnippets.org/snippets/2293/<p>This is adapted from <a href="http://djangosnippets.org/snippets/1818/">rodnsi's version</a> to work with Django 1.2 (as django.contrib.admin came with jQuery built in as of 1.2).</p>
Freely redistributableFilter; Capitalise Sentences (capsentence)
2009-01-27T04:45:30.385839-06:00djmhttp://djangosnippets.org/snippets/1298/<p>Given a string, it first lowercases it, then uppercases the first letter of each sentence.
Helpful when dealing with awfully formatted entirely UPPERCASE XML product data feeds.</p>
Freely redistributableCountryField (UN Country List, 3 Char Codes)
2009-01-12T08:11:07.686291-06:00djmhttp://djangosnippets.org/snippets/1281/<p><strong>Adapted from</strong> <a href="http://www.djangosnippets.org/snippets/494/">CountryField</a> - <strong>Initial thanks to marinho</strong></p>
<p>Uses the UN country list listed in the source - this provides the 3 character ISO country code.
Ordered by display value and not country code.</p>
<p>Just place anywhere you like and import CountryField to use.</p>
<p><code>country = CountryField(verbose_name="Country", help_text="The registrant's country …</code></p>
Freely redistributable