Sophie

Sophie

distrib > Fedora > 17 > x86_64 > by-pkgid > b6f82ea76d5134c5709ffcc9dc9e29c5 > files > 454

Django-doc-1.4.5-1.fc17.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>The “local flavor” add-ons &mdash; Django 1.4.5 documentation</title>
    
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '1.4.5',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="top" title="Django 1.4.5 documentation" href="../../index.html" />
    <link rel="up" title="contrib packages" href="index.html" />
    <link rel="next" title="django.contrib.markup" href="markup.html" />
    <link rel="prev" title="django.contrib.humanize" href="humanize.html" />
 
<script type="text/javascript" src="../../templatebuiltins.js"></script>
<script type="text/javascript">
(function($) {
    if (!django_template_builtins) {
       // templatebuiltins.js missing, do nothing.
       return;
    }
    $(document).ready(function() {
        // Hyperlink Django template tags and filters
        var base = "../templates/builtins.html";
        if (base == "#") {
            // Special case for builtins.html itself
            base = "";
        }
        // Tags are keywords, class '.k'
        $("div.highlight\\-html\\+django span.k").each(function(i, elem) {
             var tagname = $(elem).text();
             if ($.inArray(tagname, django_template_builtins.ttags) != -1) {
                 var fragment = tagname.replace(/_/, '-');
                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>");
             }
        });
        // Filters are functions, class '.nf'
        $("div.highlight\\-html\\+django span.nf").each(function(i, elem) {
             var filtername = $(elem).text();
             if ($.inArray(filtername, django_template_builtins.tfilters) != -1) {
                 var fragment = filtername.replace(/_/, '-');
                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>");
             }
        });
    });
})(jQuery);
</script>

  </head>
  <body>

    <div class="document">
  <div id="custom-doc" class="yui-t6">
    <div id="hd">
      <h1><a href="../../index.html">Django 1.4.5 documentation</a></h1>
      <div id="global-nav">
        <a title="Home page" href="../../index.html">Home</a>  |
        <a title="Table of contents" href="../../contents.html">Table of contents</a>  |
        <a title="Global index" href="../../genindex.html">Index</a>  |
        <a title="Module index" href="../../py-modindex.html">Modules</a>
      </div>
      <div class="nav">
    &laquo; <a href="humanize.html" title="django.contrib.humanize">previous</a> 
     |
    <a href="../index.html" title="API Reference" accesskey="U">up</a>
   |
    <a href="markup.html" title="django.contrib.markup">next</a> &raquo;</div>
    </div>
    
    <div id="bd">
      <div id="yui-main">
        <div class="yui-b">
          <div class="yui-g" id="ref-contrib-localflavor">
            
  <div class="section" id="s-module-django.contrib.localflavor">
<span id="s-the-local-flavor-add-ons"></span><span id="module-django.contrib.localflavor"></span><span id="the-local-flavor-add-ons"></span><h1>The &#8220;local flavor&#8221; add-ons<a class="headerlink" href="#module-django.contrib.localflavor" title="Permalink to this headline">¶</a></h1>
<p>Following its &#8220;batteries included&#8221; philosophy, Django comes with assorted
pieces of code that are useful for particular countries or cultures. These are
called the &#8220;local flavor&#8221; add-ons and live in the
<a class="reference internal" href="#module-django.contrib.localflavor" title="django.contrib.localflavor: A collection of various Django snippets that are useful only for a particular country or culture."><tt class="xref py py-mod docutils literal"><span class="pre">django.contrib.localflavor</span></tt></a> package.</p>
<p>Inside that package, country- or culture-specific code is organized into
subpackages, named using <a class="reference external" href="http://www.iso.org/iso/country_codes.htm">ISO 3166 country codes</a>.</p>
<p>Most of the <tt class="docutils literal"><span class="pre">localflavor</span></tt> add-ons are localized form components deriving
from the <a class="reference internal" href="../../topics/forms/index.html"><em>forms</em></a> framework &#8211; for example, a
<a class="reference internal" href="#django.contrib.localflavor.us.forms.USStateField" title="django.contrib.localflavor.us.forms.USStateField"><tt class="xref py py-class docutils literal"><span class="pre">USStateField</span></tt></a> that knows how to
validate U.S. state abbreviations, and a
<a class="reference internal" href="#django.contrib.localflavor.fi.forms.FISocialSecurityNumber" title="django.contrib.localflavor.fi.forms.FISocialSecurityNumber"><tt class="xref py py-class docutils literal"><span class="pre">FISocialSecurityNumber</span></tt></a> that
knows how to validate Finnish social security numbers.</p>
<p>To use one of these localized components, just import the relevant subpackage.
For example, here&#8217;s how you can create a form with a field representing a
French telephone number:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">django</span> <span class="kn">import</span> <span class="n">forms</span>
<span class="kn">from</span> <span class="nn">django.contrib.localflavor.fr.forms</span> <span class="kn">import</span> <span class="n">FRPhoneNumberField</span>

<span class="k">class</span> <span class="nc">MyForm</span><span class="p">(</span><span class="n">forms</span><span class="o">.</span><span class="n">Form</span><span class="p">):</span>
    <span class="n">my_french_phone_no</span> <span class="o">=</span> <span class="n">FRPhoneNumberField</span><span class="p">()</span>
</pre></div>
</div>
<div class="section" id="s-supported-countries">
<span id="supported-countries"></span><h2>Supported countries<a class="headerlink" href="#supported-countries" title="Permalink to this headline">¶</a></h2>
<p>Countries currently supported by <a class="reference internal" href="#module-django.contrib.localflavor" title="django.contrib.localflavor: A collection of various Django snippets that are useful only for a particular country or culture."><tt class="xref py py-mod docutils literal"><span class="pre">localflavor</span></tt></a> are:</p>
<ul class="simple">
<li><a class="reference internal" href="#argentina-ar">Argentina</a></li>
<li><a class="reference internal" href="#australia-au">Australia</a></li>
<li><a class="reference internal" href="#austria-at">Austria</a></li>
<li><a class="reference internal" href="#belgium-be">Belgium</a></li>
<li><a class="reference internal" href="#brazil-br">Brazil</a></li>
<li><a class="reference internal" href="#canada-ca">Canada</a></li>
<li><a class="reference internal" href="#chile-cl">Chile</a></li>
<li><a class="reference internal" href="#china-cn">China</a></li>
<li><a class="reference internal" href="#colombia-co">Colombia</a></li>
<li><a class="reference internal" href="#croatia-hr">Croatia</a></li>
<li><a class="reference internal" href="#czech-cz">Czech</a></li>
<li><a class="reference internal" href="#ecuador-ec">Ecuador</a></li>
<li><a class="reference internal" href="#finland-fi">Finland</a></li>
<li><a class="reference internal" href="#france-fr">France</a></li>
<li><a class="reference internal" href="#germany-de">Germany</a></li>
<li><a class="reference internal" href="#iceland-is">Iceland</a></li>
<li><a class="reference internal" href="#india-in">India</a></li>
<li><a class="reference internal" href="#indonesia-id">Indonesia</a></li>
<li><a class="reference internal" href="#ireland-ie">Ireland</a></li>
<li><a class="reference internal" href="#israel-il">Israel</a></li>
<li><a class="reference internal" href="#italy-it">Italy</a></li>
<li><a class="reference internal" href="#japan-jp">Japan</a></li>
<li><a class="reference internal" href="#kuwait-kw">Kuwait</a></li>
<li><a class="reference internal" href="#macedonia-mk">Macedonia</a></li>
<li><a class="reference internal" href="#mexico-mx">Mexico</a></li>
<li><a class="reference internal" href="#the-netherlands-nl">The Netherlands</a></li>
<li><a class="reference internal" href="#norway-no">Norway</a></li>
<li><a class="reference internal" href="#peru-pe">Peru</a></li>
<li><a class="reference internal" href="#poland-pl">Poland</a></li>
<li><a class="reference internal" href="#portugal-pt">Portugal</a></li>
<li><a class="reference internal" href="#paraguay-py">Paraguay</a></li>
<li><a class="reference internal" href="#romania-ro">Romania</a></li>
<li><a class="reference internal" href="#russia-ru">Russia</a></li>
<li><a class="reference internal" href="#slovakia-sk">Slovakia</a></li>
<li><a class="reference internal" href="#slovenia-si">Slovenia</a></li>
<li><a class="reference internal" href="#south-africa-za">South Africa</a></li>
<li><a class="reference internal" href="#spain-es">Spain</a></li>
<li><a class="reference internal" href="#sweden-se">Sweden</a></li>
<li><a class="reference internal" href="#switzerland-ch">Switzerland</a></li>
<li><a class="reference internal" href="#turkey-tr">Turkey</a></li>
<li><a class="reference internal" href="#united-kingdom-gb">United Kingdom</a></li>
<li><a class="reference internal" href="#united-states-of-america-us">United States of America</a></li>
<li><a class="reference internal" href="#uruguay-uy">Uruguay</a></li>
</ul>
<p>The <tt class="docutils literal"><span class="pre">django.contrib.localflavor</span></tt> package also includes a <tt class="docutils literal"><span class="pre">generic</span></tt> subpackage,
containing useful code that is not specific to one particular country or culture.
Currently, it defines date, datetime and split datetime input fields based on
those from <a class="reference internal" href="../../topics/forms/index.html"><em>forms</em></a>, but with non-US default formats.
Here&#8217;s an example of how to use them:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">django</span> <span class="kn">import</span> <span class="n">forms</span>
<span class="kn">from</span> <span class="nn">django.contrib.localflavor</span> <span class="kn">import</span> <span class="n">generic</span>

<span class="k">class</span> <span class="nc">MyForm</span><span class="p">(</span><span class="n">forms</span><span class="o">.</span><span class="n">Form</span><span class="p">):</span>
    <span class="n">my_date_field</span> <span class="o">=</span> <span class="n">generic</span><span class="o">.</span><span class="n">forms</span><span class="o">.</span><span class="n">DateField</span><span class="p">()</span>
</pre></div>
</div>
</div>
<div class="section" id="s-internationalization-of-localflavor">
<span id="internationalization-of-localflavor"></span><h2>Internationalization of localflavor<a class="headerlink" href="#internationalization-of-localflavor" title="Permalink to this headline">¶</a></h2>
<p>Localflavor has its own catalog of translations, in the directory
<tt class="docutils literal"><span class="pre">django/contrib/localflavor/locale</span></tt>, and it&#8217;s not loaded automatically like
Django&#8217;s general catalog in <tt class="docutils literal"><span class="pre">django/conf/locale</span></tt>. If you want localflavor&#8217;s
texts to be translated, like form fields error messages, you must include
<a class="reference internal" href="#module-django.contrib.localflavor" title="django.contrib.localflavor: A collection of various Django snippets that are useful only for a particular country or culture."><tt class="xref py py-mod docutils literal"><span class="pre">django.contrib.localflavor</span></tt></a> in the <a class="reference internal" href="../settings.html#std:setting-INSTALLED_APPS"><tt class="xref std std-setting docutils literal"><span class="pre">INSTALLED_APPS</span></tt></a> setting, so
the internationalization system can find the catalog, as explained in
<a class="reference internal" href="../../topics/i18n/translation.html#how-django-discovers-translations"><em>How Django discovers translations</em></a>.</p>
</div>
<div class="section" id="s-adding-flavors">
<span id="adding-flavors"></span><h2>Adding flavors<a class="headerlink" href="#adding-flavors" title="Permalink to this headline">¶</a></h2>
<p>We&#8217;d love to add more of these to Django, so please <a class="reference external" href="https://code.djangoproject.com/newticket">create a ticket</a> with
any code you&#8217;d like to contribute. One thing we ask is that you please use
Unicode objects (<tt class="docutils literal"><span class="pre">u'mystring'</span></tt>) for strings, rather than setting the encoding
in the file. See any of the existing flavors for examples.</p>
</div>
<div class="section" id="s-localflavor-and-backwards-compatibility">
<span id="localflavor-and-backwards-compatibility"></span><h2>Localflavor and backwards compatibility<a class="headerlink" href="#localflavor-and-backwards-compatibility" title="Permalink to this headline">¶</a></h2>
<p>As documented in our <a class="reference internal" href="../../misc/api-stability.html#misc-api-stability-localflavor"><em>API stability</em></a> policy, Django will always attempt
to make <a class="reference internal" href="#module-django.contrib.localflavor" title="django.contrib.localflavor: A collection of various Django snippets that are useful only for a particular country or culture."><tt class="xref py py-mod docutils literal"><span class="pre">django.contrib.localflavor</span></tt></a> reflect the officially
gazetted policies of the appropriate local government authority. For
example, if a government body makes a change to add, alter, or remove
a province (or state, or county), that change will be reflected in
Django&#8217;s localflavor in the next stable Django release.</p>
<p>When a backwards-incompatible change is made (for example, the removal
or renaming of a province) the localflavor in question will raise a
warning when that localflavor is imported. This provides a runtime
indication that something may require attention.</p>
<p>However, once you have addressed the backwards compatibility (for
example, auditing your code to see if any data migration is required),
the warning serves no purpose. The warning can then be supressed.
For example, to suppress the warnings raised by the Indonesian
localflavor you would use the following code:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">warnings</span>
<span class="n">warnings</span><span class="o">.</span><span class="n">filterwarnings</span><span class="p">(</span><span class="s">&#39;ignore&#39;</span><span class="p">,</span>
                        <span class="n">category</span><span class="o">=</span><span class="ne">RuntimeWarning</span><span class="p">,</span>
                        <span class="n">module</span><span class="o">=</span><span class="s">&#39;django.contrib.localflavor.id&#39;</span><span class="p">)</span>
<span class="kn">from</span> <span class="nn">django.contrib.localflavor.id</span> <span class="kn">import</span> <span class="n">forms</span> <span class="k">as</span> <span class="n">id_forms</span>
</pre></div>
</div>
</div>
<div class="section" id="s-argentina-ar">
<span id="argentina-ar"></span><h2>Argentina (<tt class="docutils literal"><span class="pre">ar</span></tt>)<a class="headerlink" href="#argentina-ar" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.ar.forms.ARPostalCodeField">
<em class="property">class </em><tt class="descclassname">ar.forms.</tt><tt class="descname">ARPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.ar.forms.ARPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as either a classic four-digit Argentinian
postal code or a <a class="reference external" href="http://www.correoargentino.com.ar/consulta_cpa/home.php">CPA</a>.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ar.forms.ARDNIField">
<em class="property">class </em><tt class="descclassname">ar.forms.</tt><tt class="descname">ARDNIField</tt><a class="headerlink" href="#django.contrib.localflavor.ar.forms.ARDNIField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Documento Nacional de Identidad (DNI)
number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ar.forms.ARCUITField">
<em class="property">class </em><tt class="descclassname">ar.forms.</tt><tt class="descname">ARCUITField</tt><a class="headerlink" href="#django.contrib.localflavor.ar.forms.ARCUITField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Codigo Unico de Identificacion
Tributaria (CUIT) number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ar.forms.ARProvinceSelect">
<em class="property">class </em><tt class="descclassname">ar.forms.</tt><tt class="descname">ARProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.ar.forms.ARProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Argentina&#8217;s provinces and autonomous
cities as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-australia-au">
<span id="australia-au"></span><h2>Australia (<tt class="docutils literal"><span class="pre">au</span></tt>)<a class="headerlink" href="#australia-au" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.au.forms.AUPostCodeField">
<em class="property">class </em><tt class="descclassname">au.forms.</tt><tt class="descname">AUPostCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.au.forms.AUPostCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Australian postcode.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.au.forms.AUPhoneNumberField">
<em class="property">class </em><tt class="descclassname">au.forms.</tt><tt class="descname">AUPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.au.forms.AUPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Australian phone number. Valid numbers
have ten digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.au.forms.AUStateSelect">
<em class="property">class </em><tt class="descclassname">au.forms.</tt><tt class="descname">AUStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.au.forms.AUStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Australian states/territories as its
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.au.models.AUPhoneNumberField">
<em class="property">class </em><tt class="descclassname">au.models.</tt><tt class="descname">AUPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.au.models.AUPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that checks that the value is a valid Australian phone
number (ten digits).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.au.models.AUStateField">
<em class="property">class </em><tt class="descclassname">au.models.</tt><tt class="descname">AUStateField</tt><a class="headerlink" href="#django.contrib.localflavor.au.models.AUStateField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.AUStateField</span></tt> field and
stores the three-letter Australian state abbreviation in the database.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.au.models.AUPostCodeField">
<em class="property">class </em><tt class="descclassname">au.models.</tt><tt class="descname">AUPostCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.au.models.AUPostCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.AUPostCodeField</span></tt> field
and stores the four-digit Australian postcode in the database.</p>
</dd></dl>

</div>
<div class="section" id="s-austria-at">
<span id="austria-at"></span><h2>Austria (<tt class="docutils literal"><span class="pre">at</span></tt>)<a class="headerlink" href="#austria-at" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.at.forms.ATZipCodeField">
<em class="property">class </em><tt class="descclassname">at.forms.</tt><tt class="descname">ATZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.at.forms.ATZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates its input as an Austrian zip code, with the
format XXXX (first digit must be greater than 0).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.at.forms.ATStateSelect">
<em class="property">class </em><tt class="descclassname">at.forms.</tt><tt class="descname">ATStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.at.forms.ATStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Austrian states as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.at.forms.ATSocialSecurityNumberField">
<em class="property">class </em><tt class="descclassname">at.forms.</tt><tt class="descname">ATSocialSecurityNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.at.forms.ATSocialSecurityNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates its input as an Austrian social security number.</p>
</dd></dl>

</div>
<div class="section" id="s-belgium-be">
<span id="belgium-be"></span><h2>Belgium (<tt class="docutils literal"><span class="pre">be</span></tt>)<a class="headerlink" href="#belgium-be" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.3:</span> <a class="reference internal" href="../../releases/1.3.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.be.forms.BEPhoneNumberField">
<em class="property">class </em><tt class="descclassname">be.forms.</tt><tt class="descname">BEPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.be.forms.BEPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Belgium phone number, with one of
the formats 0x xxx xx xx, 0xx xx xx xx, 04xx xx xx xx, 0x/xxx.xx.xx,
0xx/xx.xx.xx, 04xx/xx.xx.xx, 0x.xxx.xx.xx, 0xx.xx.xx.xx, 04xx.xx.xx.xx,
0xxxxxxxx or 04xxxxxxxx.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.be.forms.BEPostalCodeField">
<em class="property">class </em><tt class="descclassname">be.forms.</tt><tt class="descname">BEPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.be.forms.BEPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Belgium postal code, in the range
and format 1XXX-9XXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.be.forms.BEProvinceSelect">
<em class="property">class </em><tt class="descclassname">be.forms.</tt><tt class="descname">BEProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.be.forms.BEProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Belgium provinces as its
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.be.forms.BERegionSelect">
<em class="property">class </em><tt class="descclassname">be.forms.</tt><tt class="descname">BERegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.be.forms.BERegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Belgium regions as its
choices.</p>
</dd></dl>

</div>
<div class="section" id="s-brazil-br">
<span id="brazil-br"></span><h2>Brazil (<tt class="docutils literal"><span class="pre">br</span></tt>)<a class="headerlink" href="#brazil-br" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.br.forms.BRPhoneNumberField">
<em class="property">class </em><tt class="descclassname">br.forms.</tt><tt class="descname">BRPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.br.forms.BRPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Brazilian phone number, with the format
XX-XXXX-XXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.br.forms.BRZipCodeField">
<em class="property">class </em><tt class="descclassname">br.forms.</tt><tt class="descname">BRZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.br.forms.BRZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Brazilian zip code, with the format
XXXXX-XXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.br.forms.BRStateSelect">
<em class="property">class </em><tt class="descclassname">br.forms.</tt><tt class="descname">BRStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.br.forms.BRStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Brazilian states/territories as its
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.br.forms.BRCPFField">
<em class="property">class </em><tt class="descclassname">br.forms.</tt><tt class="descname">BRCPFField</tt><a class="headerlink" href="#django.contrib.localflavor.br.forms.BRCPFField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as <a class="reference external" href="http://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F%C3%ADsicas">Brazilian CPF</a>.</p>
<p>Input can either be of the format XXX.XXX.XXX-VD or be a group of 11 digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.br.forms.BRCNPJField">
<em class="property">class </em><tt class="descclassname">br.forms.</tt><tt class="descname">BRCNPJField</tt><a class="headerlink" href="#django.contrib.localflavor.br.forms.BRCNPJField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as <a class="reference external" href="http://en.wikipedia.org/wiki/National_identification_number#Brazil">Brazilian CNPJ</a>.</p>
<p>Input can either be of the format XX.XXX.XXX/XXXX-XX or be a group of 14
digits.</p>
</dd></dl>

</div>
<div class="section" id="s-canada-ca">
<span id="canada-ca"></span><h2>Canada (<tt class="docutils literal"><span class="pre">ca</span></tt>)<a class="headerlink" href="#canada-ca" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.ca.forms.CAPhoneNumberField">
<em class="property">class </em><tt class="descclassname">ca.forms.</tt><tt class="descname">CAPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ca.forms.CAPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Canadian phone number, with the format
XXX-XXX-XXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ca.forms.CAPostalCodeField">
<em class="property">class </em><tt class="descclassname">ca.forms.</tt><tt class="descname">CAPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.ca.forms.CAPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Canadian postal code, with the format
XXX XXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ca.forms.CAProvinceField">
<em class="property">class </em><tt class="descclassname">ca.forms.</tt><tt class="descname">CAProvinceField</tt><a class="headerlink" href="#django.contrib.localflavor.ca.forms.CAProvinceField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Canadian province name or abbreviation.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ca.forms.CASocialInsuranceNumberField">
<em class="property">class </em><tt class="descclassname">ca.forms.</tt><tt class="descname">CASocialInsuranceNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ca.forms.CASocialInsuranceNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Canadian Social Insurance Number (SIN).
A valid number must have the format XXX-XXX-XXX and pass a <a class="reference external" href="http://en.wikipedia.org/wiki/Luhn_algorithm">Luhn mod-10
checksum</a>.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ca.forms.CAProvinceSelect">
<em class="property">class </em><tt class="descclassname">ca.forms.</tt><tt class="descname">CAProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.ca.forms.CAProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Canadian provinces and territories as
its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-chile-cl">
<span id="chile-cl"></span><h2>Chile (<tt class="docutils literal"><span class="pre">cl</span></tt>)<a class="headerlink" href="#chile-cl" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.cl.forms.CLRutField">
<em class="property">class </em><tt class="descclassname">cl.forms.</tt><tt class="descname">CLRutField</tt><a class="headerlink" href="#django.contrib.localflavor.cl.forms.CLRutField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Chilean national identification number
(&#8216;Rol Unico Tributario&#8217; or RUT). The valid format is XX.XXX.XXX-X.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cl.forms.CLRegionSelect">
<em class="property">class </em><tt class="descclassname">cl.forms.</tt><tt class="descname">CLRegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.cl.forms.CLRegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Chilean regions (Regiones) as its
choices.</p>
</dd></dl>

</div>
<div class="section" id="s-china-cn">
<span id="china-cn"></span><h2>China (<tt class="docutils literal"><span class="pre">cn</span></tt>)<a class="headerlink" href="#china-cn" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.cn.forms.CNProvinceSelect">
<em class="property">class </em><tt class="descclassname">cn.forms.</tt><tt class="descname">CNProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.cn.forms.CNProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Chinese regions as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cn.forms.CNPostCodeField">
<em class="property">class </em><tt class="descclassname">cn.forms.</tt><tt class="descname">CNPostCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.cn.forms.CNPostCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Chinese post code.
Valid formats are XXXXXX where X is digit.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cn.forms.CNIDCardField">
<em class="property">class </em><tt class="descclassname">cn.forms.</tt><tt class="descname">CNIDCardField</tt><a class="headerlink" href="#django.contrib.localflavor.cn.forms.CNIDCardField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Chinese Identification Card Number.
Both 1st and 2nd generation ID Card Number are validated.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cn.forms.CNPhoneNumberField">
<em class="property">class </em><tt class="descclassname">cn.forms.</tt><tt class="descname">CNPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.cn.forms.CNPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Chinese phone number.
Valid formats are 0XX-XXXXXXXX, composed of 3 or 4 digits of region code
and 7 or 8 digits of phone number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cn.forms.CNCellNumberField">
<em class="property">class </em><tt class="descclassname">cn.forms.</tt><tt class="descname">CNCellNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.cn.forms.CNCellNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Chinese mobile phone number.
Valid formats are like 1XXXXXXXXXX, where X is digit.
The second digit could only be 3, 5 and 8.</p>
</dd></dl>

</div>
<div class="section" id="s-colombia-co">
<span id="colombia-co"></span><h2>Colombia (<tt class="docutils literal"><span class="pre">co</span></tt>)<a class="headerlink" href="#colombia-co" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.co.forms.CoDepartmentSelect">
<em class="property">class </em><tt class="descclassname">co.forms.</tt><tt class="descname">CoDepartmentSelect</tt><a class="headerlink" href="#django.contrib.localflavor.co.forms.CoDepartmentSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Colombian departments
as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-croatia-hr">
<span id="croatia-hr"></span><h2>Croatia (<tt class="docutils literal"><span class="pre">hr</span></tt>)<a class="headerlink" href="#croatia-hr" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRCountySelect">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRCountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRCountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of counties of Croatia as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRPhoneNumberPrefixSelect">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRPhoneNumberPrefixSelect</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRPhoneNumberPrefixSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of phone number prefixes of Croatia as
its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRLicensePlatePrefixSelect">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRLicensePlatePrefixSelect</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRLicensePlatePrefixSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of vehicle license plate prefixes of
Croatia as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRPhoneNumberField">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a phone number of Croatia.
A valid format is a country code or a leading zero, area code prefix, 6 or 7
digit number; e.g. +385XXXXXXXX or 0XXXXXXXX
Validates fixed, mobile and FGSM numbers. Normalizes to a full number with
country code (+385 prefix).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRLicensePlateField">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRLicensePlateField</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRLicensePlateField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a vehicle license plate of Croatia.
Normalizes to the specific format XX YYYY-XX where X is a letter and Y a
digit. There can be three or four digits.
Suffix is constructed from the shared letters of the Croatian and English
alphabets.
It is used for standardized license plates only. Special cases like license
plates for oldtimers, temporary license plates, government institution
license plates and customized license plates are not covered by this field.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRPostalCodeField">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a postal code of Croatia.
It consists of exactly five digits ranging from 10000 to 59999 inclusive.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HROIBField">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HROIBField</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HROIBField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Personal Identification Number (OIB)
of Croatia.
It consists of exactly eleven digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRJMBGField">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRJMBGField</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRJMBGField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Unique Master Citizen Number (JMBG).
The number is still in use in Croatia, but it is being replaced by OIB.
This field works for other ex-Yugoslavia countries as well where the JMBG is
still in use.
The area segment of the JMBG is not validated because the citizens might
have emigrated to another ex-Yugoslavia country.
The number consists of exactly thirteen digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.hr.forms.HRJMBAGField">
<em class="property">class </em><tt class="descclassname">hr.forms.</tt><tt class="descname">HRJMBAGField</tt><a class="headerlink" href="#django.contrib.localflavor.hr.forms.HRJMBAGField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Unique Master Academic Citizen Number
(JMBAG) of Croatia.
This number is used by college students and professors in Croatia.
The number consists of exactly nineteen digits.</p>
</dd></dl>

</div>
<div class="section" id="s-czech-cz">
<span id="czech-cz"></span><h2>Czech (<tt class="docutils literal"><span class="pre">cz</span></tt>)<a class="headerlink" href="#czech-cz" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.cz.forms.CZPostalCodeField">
<em class="property">class </em><tt class="descclassname">cz.forms.</tt><tt class="descname">CZPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.cz.forms.CZPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Czech postal code. Valid formats
are XXXXX or XXX XX, where X is a digit.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cz.forms.CZBirthNumberField">
<em class="property">class </em><tt class="descclassname">cz.forms.</tt><tt class="descname">CZBirthNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.cz.forms.CZBirthNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Czech Birth Number.
A valid number must be in format XXXXXX/XXXX (slash is optional).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cz.forms.CZICNumberField">
<em class="property">class </em><tt class="descclassname">cz.forms.</tt><tt class="descname">CZICNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.cz.forms.CZICNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Czech IC number field.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.cz.forms.CZRegionSelect">
<em class="property">class </em><tt class="descclassname">cz.forms.</tt><tt class="descname">CZRegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.cz.forms.CZRegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Czech regions as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-ecuador-ec">
<span id="ecuador-ec"></span><h2>Ecuador (<tt class="docutils literal"><span class="pre">ec</span></tt>)<a class="headerlink" href="#ecuador-ec" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.ec.forms.EcProvinceSelect">
<em class="property">class </em><tt class="descclassname">ec.forms.</tt><tt class="descname">EcProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.ec.forms.EcProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Ecuatorian provinces as
its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-finland-fi">
<span id="finland-fi"></span><h2>Finland (<tt class="docutils literal"><span class="pre">fi</span></tt>)<a class="headerlink" href="#finland-fi" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.fi.forms.FISocialSecurityNumber">
<em class="property">class </em><tt class="descclassname">fi.forms.</tt><tt class="descname">FISocialSecurityNumber</tt><a class="headerlink" href="#django.contrib.localflavor.fi.forms.FISocialSecurityNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Finnish social security number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.fi.forms.FIZipCodeField">
<em class="property">class </em><tt class="descclassname">fi.forms.</tt><tt class="descname">FIZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.fi.forms.FIZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Finnish zip code. Valid codes
consist of five digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.fi.forms.FIMunicipalitySelect">
<em class="property">class </em><tt class="descclassname">fi.forms.</tt><tt class="descname">FIMunicipalitySelect</tt><a class="headerlink" href="#django.contrib.localflavor.fi.forms.FIMunicipalitySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Finnish municipalities as its
choices.</p>
</dd></dl>

</div>
<div class="section" id="s-france-fr">
<span id="france-fr"></span><h2>France (<tt class="docutils literal"><span class="pre">fr</span></tt>)<a class="headerlink" href="#france-fr" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.fr.forms.FRPhoneNumberField">
<em class="property">class </em><tt class="descclassname">fr.forms.</tt><tt class="descname">FRPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.fr.forms.FRPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a French local phone number. The
correct format is 0X XX XX XX XX. 0X.XX.XX.XX.XX and 0XXXXXXXXX validate
but are corrected to 0X XX XX XX XX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.fr.forms.FRZipCodeField">
<em class="property">class </em><tt class="descclassname">fr.forms.</tt><tt class="descname">FRZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.fr.forms.FRZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a French zip code. Valid codes
consist of five digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.fr.forms.FRDepartmentSelect">
<em class="property">class </em><tt class="descclassname">fr.forms.</tt><tt class="descname">FRDepartmentSelect</tt><a class="headerlink" href="#django.contrib.localflavor.fr.forms.FRDepartmentSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of French departments as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-germany-de">
<span id="germany-de"></span><h2>Germany (<tt class="docutils literal"><span class="pre">de</span></tt>)<a class="headerlink" href="#germany-de" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.de.forms.DEIdentityCardNumberField">
<em class="property">class </em><tt class="descclassname">de.forms.</tt><tt class="descname">DEIdentityCardNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.de.forms.DEIdentityCardNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a German identity card number
(<a class="reference external" href="http://de.wikipedia.org/wiki/Personalausweis">Personalausweis</a>). Valid numbers have the format
XXXXXXXXXXX-XXXXXXX-XXXXXXX-X, with no group consisting entirely of zeroes.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.de.forms.DEZipCodeField">
<em class="property">class </em><tt class="descclassname">de.forms.</tt><tt class="descname">DEZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.de.forms.DEZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a German zip code. Valid codes
consist of five digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.de.forms.DEStateSelect">
<em class="property">class </em><tt class="descclassname">de.forms.</tt><tt class="descname">DEStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.de.forms.DEStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of German states as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-the-netherlands-nl">
<span id="the-netherlands-nl"></span><h2>The Netherlands (<tt class="docutils literal"><span class="pre">nl</span></tt>)<a class="headerlink" href="#the-netherlands-nl" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.nl.forms.NLPhoneNumberField">
<em class="property">class </em><tt class="descclassname">nl.forms.</tt><tt class="descname">NLPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.nl.forms.NLPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Dutch telephone number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.nl.forms.NLSofiNumberField">
<em class="property">class </em><tt class="descclassname">nl.forms.</tt><tt class="descname">NLSofiNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.nl.forms.NLSofiNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Dutch social security number
(SoFI/BSN).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.nl.forms.NLZipCodeField">
<em class="property">class </em><tt class="descclassname">nl.forms.</tt><tt class="descname">NLZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.nl.forms.NLZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Dutch zip code.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.nl.forms.NLProvinceSelect">
<em class="property">class </em><tt class="descclassname">nl.forms.</tt><tt class="descname">NLProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.nl.forms.NLProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Dutch provinces as its list of
choices.</p>
</dd></dl>

</div>
<div class="section" id="s-iceland-is">
<span id="iceland-is"></span><h2>Iceland (<tt class="docutils literal"><span class="pre">is_</span></tt>)<a class="headerlink" href="#iceland-is" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.is_.forms.ISIdNumberField">
<em class="property">class </em><tt class="descclassname">is_.forms.</tt><tt class="descname">ISIdNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.is_.forms.ISIdNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Icelandic identification number
(kennitala). The format is XXXXXX-XXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.is_.forms.ISPhoneNumberField">
<em class="property">class </em><tt class="descclassname">is_.forms.</tt><tt class="descname">ISPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.is_.forms.ISPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Icelandtic phone number (seven
digits with an optional hyphen or space after the first three digits).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.is_.forms.ISPostalCodeSelect">
<em class="property">class </em><tt class="descclassname">is_.forms.</tt><tt class="descname">ISPostalCodeSelect</tt><a class="headerlink" href="#django.contrib.localflavor.is_.forms.ISPostalCodeSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Icelandic postal codes as its
choices.</p>
</dd></dl>

</div>
<div class="section" id="s-india-in">
<span id="india-in"></span><h2>India (<tt class="docutils literal"><span class="pre">in_</span></tt>)<a class="headerlink" href="#india-in" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.in_.forms.INStateField">
<em class="property">class </em><tt class="descclassname">in_.forms.</tt><tt class="descname">INStateField</tt><a class="headerlink" href="#django.contrib.localflavor.in_.forms.INStateField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Indian state/territory name or
abbreviation. Input is normalized to the standard two-letter vehicle
registration abbreviation for the given state or territory.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.in_.forms.INZipCodeField">
<em class="property">class </em><tt class="descclassname">in_.forms.</tt><tt class="descname">INZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.in_.forms.INZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Indian zip code, with the
format XXXXXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.in_.forms.INStateSelect">
<em class="property">class </em><tt class="descclassname">in_.forms.</tt><tt class="descname">INStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.in_.forms.INStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Indian states/territories as its
choices.</p>
</dd></dl>

<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.in_.forms.INPhoneNumberField">
<em class="property">class </em><tt class="descclassname">in_.forms.</tt><tt class="descname">INPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.in_.forms.INPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates that the data is a valid Indian phone number,
including the STD code. It&#8217;s normalised to 0XXX-XXXXXXX or 0XXX XXXXXXX
format. The first string is the STD code which is a &#8216;0&#8217; followed by 2-4
digits. The second string is 8 digits if the STD code is 3 digits, 7
digits if the STD code is 4 digits and 6 digits if the STD code is 5
digits. The second string will start with numbers between 1 and 6. The
separator is either a space or a hyphen.</p>
</dd></dl>

</div>
<div class="section" id="s-ireland-ie">
<span id="ireland-ie"></span><h2>Ireland (<tt class="docutils literal"><span class="pre">ie</span></tt>)<a class="headerlink" href="#ireland-ie" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.ie.forms.IECountySelect">
<em class="property">class </em><tt class="descclassname">ie.forms.</tt><tt class="descname">IECountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.ie.forms.IECountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Irish Counties as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-indonesia-id">
<span id="indonesia-id"></span><h2>Indonesia (<tt class="docutils literal"><span class="pre">id</span></tt>)<a class="headerlink" href="#indonesia-id" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.id.forms.IDPostCodeField">
<em class="property">class </em><tt class="descclassname">id.forms.</tt><tt class="descname">IDPostCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.id.forms.IDPostCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Indonesian post code field.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.id.forms.IDProvinceSelect">
<em class="property">class </em><tt class="descclassname">id.forms.</tt><tt class="descname">IDProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.id.forms.IDProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Indonesian provinces as its choices.</p>
</dd></dl>

<div class="versionchanged">
<span class="title">Changed in Django 1.3:</span> The province &#8220;Nanggroe Aceh Darussalam (NAD)&#8221; has been removed
from the province list in favor of the new official designation
&#8220;Aceh (ACE)&#8221;.</div>
<dl class="class">
<dt id="django.contrib.localflavor.id.forms.IDPhoneNumberField">
<em class="property">class </em><tt class="descclassname">id.forms.</tt><tt class="descname">IDPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.id.forms.IDPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Indonesian telephone number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.id.forms.IDLicensePlatePrefixSelect">
<em class="property">class </em><tt class="descclassname">id.forms.</tt><tt class="descname">IDLicensePlatePrefixSelect</tt><a class="headerlink" href="#django.contrib.localflavor.id.forms.IDLicensePlatePrefixSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Indonesian license plate
prefix code as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.id.forms.IDLicensePlateField">
<em class="property">class </em><tt class="descclassname">id.forms.</tt><tt class="descname">IDLicensePlateField</tt><a class="headerlink" href="#django.contrib.localflavor.id.forms.IDLicensePlateField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Indonesian vehicle license plate.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.id.forms.IDNationalIdentityNumberField">
<em class="property">class </em><tt class="descclassname">id.forms.</tt><tt class="descname">IDNationalIdentityNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.id.forms.IDNationalIdentityNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Indonesian national identity
number (<a class="reference external" href="http://en.wikipedia.org/wiki/Indonesian_identity_card">NIK</a>/KTP). The output will be in the format of
&#8216;XX.XXXX.DDMMYY.XXXX&#8217;. Dots or spaces can be used in the input to break
down the numbers.</p>
</dd></dl>

</div>
<div class="section" id="s-israel-il">
<span id="israel-il"></span><h2>Israel (<tt class="docutils literal"><span class="pre">il</span></tt>)<a class="headerlink" href="#israel-il" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.il.forms.ILPostalCodeField">
<em class="property">class </em><tt class="descclassname">il.forms.</tt><tt class="descname">ILPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.il.forms.ILPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates its input as an Israeli five-digit postal code.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.il.forms.ILIDNumberField">
<em class="property">class </em><tt class="descclassname">il.forms.</tt><tt class="descname">ILIDNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.il.forms.ILIDNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates its input as an <a class="reference external" href="http://he.wikipedia.org/wiki/%D7%9E%D7%A1%D7%A4%D7%A8_%D7%96%D7%94%D7%95%D7%AA_(%D7%99%D7%A9%D7%A8%D7%90%D7%9C)">Israeli identification number</a>.
The output will be in the format of a 2-9 digit number, consisting of a
1-8 digit ID number followed by a single checksum digit, calculated using
the <a class="reference external" href="http://en.wikipedia.org/wiki/Luhn_algorithm">Luhn algorithm</a>.</p>
<p>Input may contain an optional hyphen separating the ID number from the checksum
digit.</p>
</dd></dl>

</div>
<div class="section" id="s-italy-it">
<span id="italy-it"></span><h2>Italy (<tt class="docutils literal"><span class="pre">it</span></tt>)<a class="headerlink" href="#italy-it" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.it.forms.ITSocialSecurityNumberField">
<em class="property">class </em><tt class="descclassname">it.forms.</tt><tt class="descname">ITSocialSecurityNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.it.forms.ITSocialSecurityNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Italian social security number
(<a class="reference external" href="http://www.agenziaentrate.gov.it/wps/content/Nsilib/Nsi/Home/CosaDeviFare/Richiedere/Codice+fiscale+e+tessera+sanitaria/Richiesta+TS_CF/SchedaI/Informazioni+codificazione+pf/">codice fiscale</a>).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.it.forms.ITVatNumberField">
<em class="property">class </em><tt class="descclassname">it.forms.</tt><tt class="descname">ITVatNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.it.forms.ITVatNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates Italian VAT numbers (partita IVA).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.it.forms.ITZipCodeField">
<em class="property">class </em><tt class="descclassname">it.forms.</tt><tt class="descname">ITZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.it.forms.ITZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an Italian zip code. Valid codes
must have five digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.it.forms.ITProvinceSelect">
<em class="property">class </em><tt class="descclassname">it.forms.</tt><tt class="descname">ITProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.it.forms.ITProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Italian provinces as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.it.forms.ITRegionSelect">
<em class="property">class </em><tt class="descclassname">it.forms.</tt><tt class="descname">ITRegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.it.forms.ITRegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Italian regions as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-japan-jp">
<span id="japan-jp"></span><h2>Japan (<tt class="docutils literal"><span class="pre">jp</span></tt>)<a class="headerlink" href="#japan-jp" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.jp.forms.JPPostalCodeField">
<em class="property">class </em><tt class="descclassname">jp.forms.</tt><tt class="descname">JPPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.jp.forms.JPPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Japanese postcode. It accepts seven
digits, with or without a hyphen.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.jp.forms.JPPrefectureSelect">
<em class="property">class </em><tt class="descclassname">jp.forms.</tt><tt class="descname">JPPrefectureSelect</tt><a class="headerlink" href="#django.contrib.localflavor.jp.forms.JPPrefectureSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Japanese prefectures as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-kuwait-kw">
<span id="kuwait-kw"></span><h2>Kuwait (<tt class="docutils literal"><span class="pre">kw</span></tt>)<a class="headerlink" href="#kuwait-kw" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.kw.forms.KWCivilIDNumberField">
<em class="property">class </em><tt class="descclassname">kw.forms.</tt><tt class="descname">KWCivilIDNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.kw.forms.KWCivilIDNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Kuwaiti Civil ID number. A valid
Civil ID number must obey the following rules:</p>
<ul class="simple">
<li>The number consist of 12 digits.</li>
<li>The birthdate of the person is a valid date.</li>
<li>The calculated checksum equals to the last digit of the Civil ID.</li>
</ul>
</dd></dl>

</div>
<div class="section" id="s-macedonia-mk">
<span id="macedonia-mk"></span><h2>Macedonia (<tt class="docutils literal"><span class="pre">mk</span></tt>)<a class="headerlink" href="#macedonia-mk" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.mk.forms.MKIdentityCardNumberField">
<em class="property">class </em><tt class="descclassname">mk.forms.</tt><tt class="descname">MKIdentityCardNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.mk.forms.MKIdentityCardNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Macedonian identity card number.
Both old and new identity card numbers are supported.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mk.forms.MKMunicipalitySelect">
<em class="property">class </em><tt class="descclassname">mk.forms.</tt><tt class="descname">MKMunicipalitySelect</tt><a class="headerlink" href="#django.contrib.localflavor.mk.forms.MKMunicipalitySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A form <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Macedonian municipalities as
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mk.forms.UMCNField">
<em class="property">class </em><tt class="descclassname">mk.forms.</tt><tt class="descname">UMCNField</tt><a class="headerlink" href="#django.contrib.localflavor.mk.forms.UMCNField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a unique master citizen
number.</p>
<p>The format of the unique master citizen number is not unique
to Macedonia. For more information see:
<a class="reference external" href="https://secure.wikimedia.org/wikipedia/en/wiki/Unique_Master_Citizen_Number">https://secure.wikimedia.org/wikipedia/en/wiki/Unique_Master_Citizen_Number</a></p>
<p>A value will pass validation if it complies to the following rules:</p>
<ul class="simple">
<li>Consists of exactly 13 digits</li>
<li>The first 7 digits represent a valid past date in the format DDMMYYY</li>
<li>The last digit of the UMCN passes a checksum test</li>
</ul>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mk.models.MKIdentityCardNumberField">
<em class="property">class </em><tt class="descclassname">mk.models.</tt><tt class="descname">MKIdentityCardNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.mk.models.MKIdentityCardNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a
<tt class="docutils literal"><span class="pre">forms.MKIdentityCardNumberField</span></tt> field.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mk.models.MKMunicipalityField">
<em class="property">class </em><tt class="descclassname">mk.models.</tt><tt class="descname">MKMunicipalityField</tt><a class="headerlink" href="#django.contrib.localflavor.mk.models.MKMunicipalityField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a
<tt class="docutils literal"><span class="pre">forms.MKMunicipalitySelect</span></tt> and stores the 2 character code of the
municipality in the database.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mk.models.UMCNField">
<em class="property">class </em><tt class="descclassname">mk.models.</tt><tt class="descname">UMCNField</tt><a class="headerlink" href="#django.contrib.localflavor.mk.models.UMCNField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.UMCNField</span></tt> field.</p>
</dd></dl>

</div>
<div class="section" id="s-mexico-mx">
<span id="mexico-mx"></span><h2>Mexico (<tt class="docutils literal"><span class="pre">mx</span></tt>)<a class="headerlink" href="#mexico-mx" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.mx.forms.MXZipCodeField">
<em class="property">class </em><tt class="descclassname">mx.forms.</tt><tt class="descname">MXZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.forms.MXZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A form field that accepts a Mexican Zip Code.</p>
<p>More info about this: List of postal codes in Mexico (<a class="reference external" href="http://en.wikipedia.org/wiki/List_of_postal_codes_in_Mexico">zipcodes</a>)</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.forms.MXRFCField">
<em class="property">class </em><tt class="descclassname">mx.forms.</tt><tt class="descname">MXRFCField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.forms.MXRFCField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A form field that validates a Mexican <em>Registro Federal de Contribuyentes</em> for
either <strong>Persona física</strong> or <strong>Persona moral</strong>. This field accepts RFC strings
whether or not it contains a <em>homoclave</em>.</p>
<p>More info about this: Registro Federal de Contribuyentes (<a class="reference external" href="http://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes_(M%C3%A9xico)">rfc</a>)</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.forms.MXCURPField">
<em class="property">class </em><tt class="descclassname">mx.forms.</tt><tt class="descname">MXCURPField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.forms.MXCURPField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A field that validates a Mexican <em>Clave Única de Registro de Población</em>.</p>
<p>More info about this: Clave Unica de Registro de Poblacion (<a class="reference external" href="http://www.condusef.gob.mx/index.php/clave-unica-de-registro-de-poblacion-curp">curp</a>)</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.forms.MXStateSelect">
<em class="property">class </em><tt class="descclassname">mx.forms.</tt><tt class="descname">MXStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.mx.forms.MXStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Mexican states as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.models.MXStateField">
<em class="property">class </em><tt class="descclassname">mx.models.</tt><tt class="descname">MXStateField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.models.MXStateField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A model field that stores the three-letter Mexican state abbreviation in the
database.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.models.MXZipCodeField">
<em class="property">class </em><tt class="descclassname">mx.models.</tt><tt class="descname">MXZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.models.MXZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.MXZipCodeField</span></tt> field and
stores the five-digit Mexican zip code.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.models.MXRFCField">
<em class="property">class </em><tt class="descclassname">mx.models.</tt><tt class="descname">MXRFCField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.models.MXRFCField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.MXRFCField</span></tt> field and
stores the value of a valid Mexican RFC.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.mx.models.MXCURPField">
<em class="property">class </em><tt class="descclassname">mx.models.</tt><tt class="descname">MXCURPField</tt><a class="headerlink" href="#django.contrib.localflavor.mx.models.MXCURPField" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.MXCURPField</span></tt> field and
stores the value of a valid Mexican CURP.</p>
</dd></dl>

<p>Additionally, a choice tuple is provided in <tt class="docutils literal"><span class="pre">django.contrib.localflavor.mx.mx_states</span></tt>,
allowing customized model and form fields, and form presentations, for subsets of
Mexican states abbreviations:</p>
<dl class="data">
<dt id="django.contrib.localflavor.mx.mx_states.STATE_CHOICES">
<tt class="descclassname">mx.mx_states.</tt><tt class="descname">STATE_CHOICES</tt><a class="headerlink" href="#django.contrib.localflavor.mx.mx_states.STATE_CHOICES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of the states abbreviations for all 31 Mexican states,
plus the <cite>Distrito Federal</cite>.</p>
</dd></dl>

</div>
<div class="section" id="s-norway-no">
<span id="norway-no"></span><h2>Norway (<tt class="docutils literal"><span class="pre">no</span></tt>)<a class="headerlink" href="#norway-no" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.no.forms.NOSocialSecurityNumber">
<em class="property">class </em><tt class="descclassname">no.forms.</tt><tt class="descname">NOSocialSecurityNumber</tt><a class="headerlink" href="#django.contrib.localflavor.no.forms.NOSocialSecurityNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Norwegian social security number
(<a class="reference external" href="http://no.wikipedia.org/wiki/Personnummer">personnummer</a>).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.no.forms.NOZipCodeField">
<em class="property">class </em><tt class="descclassname">no.forms.</tt><tt class="descname">NOZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.no.forms.NOZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Norwegian zip code. Valid codes
have four digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.no.forms.NOMunicipalitySelect">
<em class="property">class </em><tt class="descclassname">no.forms.</tt><tt class="descname">NOMunicipalitySelect</tt><a class="headerlink" href="#django.contrib.localflavor.no.forms.NOMunicipalitySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Norwegian municipalities (fylker) as
its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-paraguay-py">
<span id="paraguay-py"></span><h2>Paraguay (<tt class="docutils literal"><span class="pre">py</span></tt>)<a class="headerlink" href="#paraguay-py" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.py.forms.PyDepartmentSelect">
<em class="property">class </em><tt class="descclassname">py.forms.</tt><tt class="descname">PyDepartmentSelect</tt><a class="headerlink" href="#django.contrib.localflavor.py.forms.PyDepartmentSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget with a list of Paraguayan departments as choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.py.forms.PyNumberedDepartmentSelect">
<em class="property">class </em><tt class="descclassname">py.forms.</tt><tt class="descname">PyNumberedDepartmentSelect</tt><a class="headerlink" href="#django.contrib.localflavor.py.forms.PyNumberedDepartmentSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget with a roman numbered list of Paraguayan departments as choices.</p>
</dd></dl>

</div>
<div class="section" id="s-peru-pe">
<span id="peru-pe"></span><h2>Peru (<tt class="docutils literal"><span class="pre">pe</span></tt>)<a class="headerlink" href="#peru-pe" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.pe.forms.PEDNIField">
<em class="property">class </em><tt class="descclassname">pe.forms.</tt><tt class="descname">PEDNIField</tt><a class="headerlink" href="#django.contrib.localflavor.pe.forms.PEDNIField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a DNI (Peruvian national identity)
number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pe.forms.PERUCField">
<em class="property">class </em><tt class="descclassname">pe.forms.</tt><tt class="descname">PERUCField</tt><a class="headerlink" href="#django.contrib.localflavor.pe.forms.PERUCField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as an RUC (Registro Unico de
Contribuyentes) number. Valid RUC numbers have 11 digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pe.forms.PEDepartmentSelect">
<em class="property">class </em><tt class="descclassname">pe.forms.</tt><tt class="descname">PEDepartmentSelect</tt><a class="headerlink" href="#django.contrib.localflavor.pe.forms.PEDepartmentSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Peruvian Departments as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-poland-pl">
<span id="poland-pl"></span><h2>Poland (<tt class="docutils literal"><span class="pre">pl</span></tt>)<a class="headerlink" href="#poland-pl" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLPESELField">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLPESELField</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLPESELField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Polish national identification number
(<a class="reference external" href="http://en.wikipedia.org/wiki/PESEL">PESEL</a>).</p>
</dd></dl>

<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLNationalIDCardNumberField">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLNationalIDCardNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLNationalIDCardNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Polish National ID Card number. The
valid format is AAAXXXXXX, where A is letter (A-Z), X is digit and left-most
digit is checksum digit. More information about checksum calculation algorithm
see <a class="reference external" href="http://en.wikipedia.org/wiki/Polish_identity_card">Polish identity card</a>.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLREGONField">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLREGONField</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLREGONField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Polish National Official Business
Register Number (<a class="reference external" href="http://www.stat.gov.pl/bip/regon_ENG_HTML.htm">REGON</a>), having either seven or nine digits. The checksum
algorithm used for REGONs is documented at
<a class="reference external" href="http://wipos.p.lodz.pl/zylla/ut/nip-rego.html">http://wipos.p.lodz.pl/zylla/ut/nip-rego.html</a>.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLPostalCodeField">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Polish postal code. The valid format
is XX-XXX, where X is a digit.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLNIPField">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLNIPField</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLNIPField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Polish Tax Number (NIP). Valid formats
are XXX-XXX-XX-XX, XXX-XX-XX-XXX or XXXXXXXXXX. The checksum algorithm used
for NIPs is documented at <a class="reference external" href="http://wipos.p.lodz.pl/zylla/ut/nip-rego.html">http://wipos.p.lodz.pl/zylla/ut/nip-rego.html</a>.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLCountySelect">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLCountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLCountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Polish administrative units as its
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pl.forms.PLProvinceSelect">
<em class="property">class </em><tt class="descclassname">pl.forms.</tt><tt class="descname">PLProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.pl.forms.PLProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Polish voivodeships (administrative
provinces) as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-portugal-pt">
<span id="portugal-pt"></span><h2>Portugal (<tt class="docutils literal"><span class="pre">pt</span></tt>)<a class="headerlink" href="#portugal-pt" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.pt.forms.PTZipCodeField">
<em class="property">class </em><tt class="descclassname">pt.forms.</tt><tt class="descname">PTZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.pt.forms.PTZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Portuguese zip code.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.pt.forms.PTPhoneNumberField">
<em class="property">class </em><tt class="descclassname">pt.forms.</tt><tt class="descname">PTPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.pt.forms.PTPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Portuguese phone number.
Valid numbers have 9 digits (may include spaces) or start by 00
or + (international).</p>
</dd></dl>

</div>
<div class="section" id="s-romania-ro">
<span id="romania-ro"></span><h2>Romania (<tt class="docutils literal"><span class="pre">ro</span></tt>)<a class="headerlink" href="#romania-ro" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROCIFField">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROCIFField</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROCIFField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates Romanian fiscal identification codes (CIF). The
return value strips the leading RO, if given.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROCNPField">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROCNPField</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROCNPField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates Romanian personal numeric codes (CNP).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROCountyField">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROCountyField</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROCountyField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates its input as a Romanian county (judet) name or
abbreviation. It normalizes the input to the standard vehicle registration
abbreviation for the given county. This field will only accept names written
with diacritics; consider using ROCountySelect as an alternative.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROCountySelect">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROCountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROCountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Romanian counties (judete) as its
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROIBANField">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROIBANField</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROIBANField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates its input as a Romanian International Bank
Account Number (IBAN). The valid format is ROXX-XXXX-XXXX-XXXX-XXXX-XXXX,
with or without hyphens.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROPhoneNumberField">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates Romanian phone numbers, short special numbers
excluded.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ro.forms.ROPostalCodeField">
<em class="property">class </em><tt class="descclassname">ro.forms.</tt><tt class="descname">ROPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.ro.forms.ROPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates Romanian postal codes.</p>
</dd></dl>

</div>
<div class="section" id="s-russia-ru">
<span id="russia-ru"></span><h2>Russia (<tt class="docutils literal"><span class="pre">ru</span></tt>)<a class="headerlink" href="#russia-ru" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<span class="title">New in Django 1.4:</span> <a class="reference internal" href="../../releases/1.4.html"><em>Please see the release notes</em></a></div>
<dl class="class">
<dt id="django.contrib.localflavor.ru.forms.RUPostalCodeField">
<em class="property">class </em><tt class="descclassname">ru.forms.</tt><tt class="descname">RUPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.ru.forms.RUPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>Russian Postal code field. The valid format is XXXXXX, where X is any
digit and the first digit is not zero.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ru.forms.RUCountySelect">
<em class="property">class </em><tt class="descclassname">ru.forms.</tt><tt class="descname">RUCountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.ru.forms.RUCountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Russian Counties as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ru.forms.RURegionSelect">
<em class="property">class </em><tt class="descclassname">ru.forms.</tt><tt class="descname">RURegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.ru.forms.RURegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Russian Regions as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ru.forms.RUPassportNumberField">
<em class="property">class </em><tt class="descclassname">ru.forms.</tt><tt class="descname">RUPassportNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ru.forms.RUPassportNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>Russian internal passport number. The valid format is XXXX XXXXXX, where X
is any digit.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ru.forms.RUAlienPassportNumberField">
<em class="property">class </em><tt class="descclassname">ru.forms.</tt><tt class="descname">RUAlienPassportNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ru.forms.RUAlienPassportNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>Russian alien&#8217;s passport number. The valid format is XX XXXXXXX, where X
is any digit.</p>
</dd></dl>

</div>
<div class="section" id="s-slovakia-sk">
<span id="slovakia-sk"></span><h2>Slovakia (<tt class="docutils literal"><span class="pre">sk</span></tt>)<a class="headerlink" href="#slovakia-sk" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.sk.forms.SKPostalCodeField">
<em class="property">class </em><tt class="descclassname">sk.forms.</tt><tt class="descname">SKPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.sk.forms.SKPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Slovak postal code. Valid formats
are XXXXX or XXX XX, where X is a digit.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.sk.forms.SKDistrictSelect">
<em class="property">class </em><tt class="descclassname">sk.forms.</tt><tt class="descname">SKDistrictSelect</tt><a class="headerlink" href="#django.contrib.localflavor.sk.forms.SKDistrictSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Slovak districts as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.sk.forms.SKRegionSelect">
<em class="property">class </em><tt class="descclassname">sk.forms.</tt><tt class="descname">SKRegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.sk.forms.SKRegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Slovak regions as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-slovenia-si">
<span id="slovenia-si"></span><h2>Slovenia (<tt class="docutils literal"><span class="pre">si</span></tt>)<a class="headerlink" href="#slovenia-si" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.si.forms.SIEMSOField">
<em class="property">class </em><tt class="descclassname">si.forms.</tt><tt class="descname">SIEMSOField</tt><a class="headerlink" href="#django.contrib.localflavor.si.forms.SIEMSOField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as Slovenian personal identification
number and stores gender and birthday to self.info dictionary.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.si.forms.SITaxNumberField">
<em class="property">class </em><tt class="descclassname">si.forms.</tt><tt class="descname">SITaxNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.si.forms.SITaxNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Slovenian tax number. Valid input
is SIXXXXXXXX or XXXXXXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.si.forms.SIPhoneNumberField">
<em class="property">class </em><tt class="descclassname">si.forms.</tt><tt class="descname">SIPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.si.forms.SIPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Slovenian phone number. Phone
number must contain at least local area code with optional country code.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.si.forms.SIPostalCodeField">
<em class="property">class </em><tt class="descclassname">si.forms.</tt><tt class="descname">SIPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.si.forms.SIPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that provides a choice field of major Slovenian postal
codes.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.si.forms.SIPostalCodeSelect">
<em class="property">class </em><tt class="descclassname">si.forms.</tt><tt class="descname">SIPostalCodeSelect</tt><a class="headerlink" href="#django.contrib.localflavor.si.forms.SIPostalCodeSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of major Slovenian postal codes as
its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-south-africa-za">
<span id="south-africa-za"></span><h2>South Africa (<tt class="docutils literal"><span class="pre">za</span></tt>)<a class="headerlink" href="#south-africa-za" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.za.forms.ZAIDField">
<em class="property">class </em><tt class="descclassname">za.forms.</tt><tt class="descname">ZAIDField</tt><a class="headerlink" href="#django.contrib.localflavor.za.forms.ZAIDField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a South African ID number. Validation
uses the Luhn checksum and a simplistic (i.e., not entirely accurate) check
for birth date.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.za.forms.ZAPostCodeField">
<em class="property">class </em><tt class="descclassname">za.forms.</tt><tt class="descname">ZAPostCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.za.forms.ZAPostCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a South African postcode. Valid
postcodes must have four digits.</p>
</dd></dl>

</div>
<div class="section" id="s-spain-es">
<span id="spain-es"></span><h2>Spain (<tt class="docutils literal"><span class="pre">es</span></tt>)<a class="headerlink" href="#spain-es" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.es.forms.ESIdentityCardNumberField">
<em class="property">class </em><tt class="descclassname">es.forms.</tt><tt class="descname">ESIdentityCardNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.es.forms.ESIdentityCardNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Spanish NIF/NIE/CIF (Fiscal
Identification Number) code.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.es.forms.ESCCCField">
<em class="property">class </em><tt class="descclassname">es.forms.</tt><tt class="descname">ESCCCField</tt><a class="headerlink" href="#django.contrib.localflavor.es.forms.ESCCCField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Spanish bank account number (Codigo
Cuenta Cliente or CCC). A valid CCC number has the format
EEEE-OOOO-CC-AAAAAAAAAA, where the E, O, C and A digits denote the entity,
office, checksum and account, respectively. The first checksum digit
validates the entity and office. The second checksum digit validates the
account. It is also valid to use a space as a delimiter, or to use no
delimiter.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.es.forms.ESPhoneNumberField">
<em class="property">class </em><tt class="descclassname">es.forms.</tt><tt class="descname">ESPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.es.forms.ESPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Spanish phone number. Valid numbers
have nine digits, the first of which is 6, 8 or 9.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.es.forms.ESPostalCodeField">
<em class="property">class </em><tt class="descclassname">es.forms.</tt><tt class="descname">ESPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.es.forms.ESPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Spanish postal code. Valid codes
have five digits, the first two being in the range 01 to 52, representing
the province.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.es.forms.ESProvinceSelect">
<em class="property">class </em><tt class="descclassname">es.forms.</tt><tt class="descname">ESProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.es.forms.ESProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Spanish provinces as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.es.forms.ESRegionSelect">
<em class="property">class </em><tt class="descclassname">es.forms.</tt><tt class="descname">ESRegionSelect</tt><a class="headerlink" href="#django.contrib.localflavor.es.forms.ESRegionSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Spanish regions as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-sweden-se">
<span id="sweden-se"></span><h2>Sweden (<tt class="docutils literal"><span class="pre">se</span></tt>)<a class="headerlink" href="#sweden-se" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.se.forms.SECountySelect">
<em class="property">class </em><tt class="descclassname">se.forms.</tt><tt class="descname">SECountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.se.forms.SECountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A Select form widget that uses a list of the Swedish counties (län) as its
choices.</p>
<p>The cleaned value is the official county code &#8211; see
<a class="reference external" href="http://en.wikipedia.org/wiki/Counties_of_Sweden">http://en.wikipedia.org/wiki/Counties_of_Sweden</a> for a list.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.se.forms.SEOrganisationNumber">
<em class="property">class </em><tt class="descclassname">se.forms.</tt><tt class="descname">SEOrganisationNumber</tt><a class="headerlink" href="#django.contrib.localflavor.se.forms.SEOrganisationNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Swedish organisation number
(organisationsnummer).</p>
<p>It accepts the same input as SEPersonalIdentityField (for sole
proprietorships (enskild firma). However, co-ordination numbers are not
accepted.</p>
<p>It also accepts ordinary Swedish organisation numbers with the format
NNNNNNNNNN.</p>
<p>The return value will be YYYYMMDDXXXX for sole proprietors, and NNNNNNNNNN
for other organisations.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.se.forms.SEPersonalIdentityNumber">
<em class="property">class </em><tt class="descclassname">se.forms.</tt><tt class="descname">SEPersonalIdentityNumber</tt><a class="headerlink" href="#django.contrib.localflavor.se.forms.SEPersonalIdentityNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Swedish personal identity number
(personnummer).</p>
<p>The correct formats are YYYYMMDD-XXXX, YYYYMMDDXXXX, YYMMDD-XXXX,
YYMMDDXXXX and YYMMDD+XXXX.</p>
<p>A + indicates that the person is older than 100 years, which will be taken
into consideration when the date is validated.</p>
<p>The checksum will be calculated and checked. The birth date is checked
to be a valid date.</p>
<p>By default, co-ordination numbers (samordningsnummer) will be accepted. To
only allow real personal identity numbers, pass the keyword argument
coordination_number=False to the constructor.</p>
<p>The cleaned value will always have the format YYYYMMDDXXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.se.forms.SEPostalCodeField">
<em class="property">class </em><tt class="descclassname">se.forms.</tt><tt class="descname">SEPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.se.forms.SEPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Swedish postal code (postnummer).
Valid codes consist of five digits (XXXXX). The number can optionally be
formatted with a space after the third digit (XXX XX).</p>
<p>The cleaned value will never contain the space.</p>
</dd></dl>

</div>
<div class="section" id="s-switzerland-ch">
<span id="switzerland-ch"></span><h2>Switzerland (<tt class="docutils literal"><span class="pre">ch</span></tt>)<a class="headerlink" href="#switzerland-ch" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.ch.forms.CHIdentityCardNumberField">
<em class="property">class </em><tt class="descclassname">ch.forms.</tt><tt class="descname">CHIdentityCardNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ch.forms.CHIdentityCardNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Swiss identity card number.
A valid number must confirm to the X1234567&lt;0 or 1234567890 format and
have the correct checksums.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ch.forms.CHPhoneNumberField">
<em class="property">class </em><tt class="descclassname">ch.forms.</tt><tt class="descname">CHPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.ch.forms.CHPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Swiss phone number. The correct
format is 0XX XXX XX XX. 0XX.XXX.XX.XX and 0XXXXXXXXX validate but are
corrected to 0XX XXX XX XX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ch.forms.CHZipCodeField">
<em class="property">class </em><tt class="descclassname">ch.forms.</tt><tt class="descname">CHZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.ch.forms.CHZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Swiss zip code. Valid codes
consist of four digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.ch.forms.CHStateSelect">
<em class="property">class </em><tt class="descclassname">ch.forms.</tt><tt class="descname">CHStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.ch.forms.CHStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of Swiss states as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-turkey-tr">
<span id="turkey-tr"></span><h2>Turkey (<tt class="docutils literal"><span class="pre">tr</span></tt>)<a class="headerlink" href="#turkey-tr" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.tr.forms.TRZipCodeField">
<em class="property">class </em><tt class="descclassname">tr.forms.</tt><tt class="descname">TRZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.tr.forms.TRZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Turkish zip code. Valid codes
consist of five digits.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.tr.forms.TRPhoneNumberField">
<em class="property">class </em><tt class="descclassname">tr.forms.</tt><tt class="descname">TRPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.tr.forms.TRPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a Turkish phone number. The correct
format is 0xxx xxx xxxx. +90xxx xxx xxxx and inputs without spaces also
validates. The result is normalized to xxx xxx xxxx format.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.tr.forms.TRIdentificationNumberField">
<em class="property">class </em><tt class="descclassname">tr.forms.</tt><tt class="descname">TRIdentificationNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.tr.forms.TRIdentificationNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a TR identification number. A valid
number must satisfy the following:</p>
<ul class="simple">
<li>The number consist of 11 digits.</li>
<li>The first digit cannot be 0.</li>
<li>(sum(1st, 3rd, 5th, 7th, 9th)*7 - sum(2nd,4th,6th,8th)) % 10) must be
equal to the 10th digit.</li>
<li>(sum(1st to 10th) % 10) must be equal to the 11th digit.</li>
</ul>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.tr.forms.TRProvinceSelect">
<em class="property">class </em><tt class="descclassname">tr.forms.</tt><tt class="descname">TRProvinceSelect</tt><a class="headerlink" href="#django.contrib.localflavor.tr.forms.TRProvinceSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">select</span></tt> widget that uses a list of Turkish provinces as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-united-kingdom-gb">
<span id="united-kingdom-gb"></span><h2>United Kingdom (<tt class="docutils literal"><span class="pre">gb</span></tt>)<a class="headerlink" href="#united-kingdom-gb" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.gb.forms.GBPostcodeField">
<em class="property">class </em><tt class="descclassname">gb.forms.</tt><tt class="descname">GBPostcodeField</tt><a class="headerlink" href="#django.contrib.localflavor.gb.forms.GBPostcodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a UK postcode. The regular
expression used is sourced from the schema for British Standard BS7666
address types at <a class="reference external" href="http://www.cabinetoffice.gov.uk/media/291293/bs7666-v2-0.xml">http://www.cabinetoffice.gov.uk/media/291293/bs7666-v2-0.xml</a>.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.gb.forms.GBCountySelect">
<em class="property">class </em><tt class="descclassname">gb.forms.</tt><tt class="descname">GBCountySelect</tt><a class="headerlink" href="#django.contrib.localflavor.gb.forms.GBCountySelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of UK counties/regions as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.gb.forms.GBNationSelect">
<em class="property">class </em><tt class="descclassname">gb.forms.</tt><tt class="descname">GBNationSelect</tt><a class="headerlink" href="#django.contrib.localflavor.gb.forms.GBNationSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of UK nations as its choices.</p>
</dd></dl>

</div>
<div class="section" id="s-united-states-of-america-us">
<span id="united-states-of-america-us"></span><h2>United States of America (<tt class="docutils literal"><span class="pre">us</span></tt>)<a class="headerlink" href="#united-states-of-america-us" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.us.forms.USPhoneNumberField">
<em class="property">class </em><tt class="descclassname">us.forms.</tt><tt class="descname">USPhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.us.forms.USPhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a U.S. phone number.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.forms.USSocialSecurityNumberField">
<em class="property">class </em><tt class="descclassname">us.forms.</tt><tt class="descname">USSocialSecurityNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.us.forms.USSocialSecurityNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a U.S. Social Security Number (SSN).
A valid SSN must obey the following rules:</p>
<ul class="simple">
<li>Format of XXX-XX-XXXX</li>
<li>No group of digits consisting entirely of zeroes</li>
<li>Leading group of digits cannot be 666</li>
<li>Number not in promotional block 987-65-4320 through 987-65-4329</li>
<li>Number not one known to be invalid due to widespread promotional
use or distribution (e.g., the Woolworth&#8217;s number or the 1962
promotional number)</li>
</ul>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.forms.USStateField">
<em class="property">class </em><tt class="descclassname">us.forms.</tt><tt class="descname">USStateField</tt><a class="headerlink" href="#django.contrib.localflavor.us.forms.USStateField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a U.S. state name or abbreviation. It
normalizes the input to the standard two-letter postal service abbreviation
for the given state.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.forms.USZipCodeField">
<em class="property">class </em><tt class="descclassname">us.forms.</tt><tt class="descname">USZipCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.us.forms.USZipCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A form field that validates input as a U.S. ZIP code. Valid formats are
XXXXX or XXXXX-XXXX.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.forms.USStateSelect">
<em class="property">class </em><tt class="descclassname">us.forms.</tt><tt class="descname">USStateSelect</tt><a class="headerlink" href="#django.contrib.localflavor.us.forms.USStateSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A form <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of U.S. states/territories as its
choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.forms.USPSSelect">
<em class="property">class </em><tt class="descclassname">us.forms.</tt><tt class="descname">USPSSelect</tt><a class="headerlink" href="#django.contrib.localflavor.us.forms.USPSSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A form <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of U.S Postal Service
state, territory and country abbreviations as its choices.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.models.PhoneNumberField">
<em class="property">class </em><tt class="descclassname">us.models.</tt><tt class="descname">PhoneNumberField</tt><a class="headerlink" href="#django.contrib.localflavor.us.models.PhoneNumberField" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="xref py py-class docutils literal"><span class="pre">CharField</span></tt> that checks that the value is a valid U.S.A.-style phone
number (in the format <tt class="docutils literal"><span class="pre">XXX-XXX-XXXX</span></tt>).</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.models.USStateField">
<em class="property">class </em><tt class="descclassname">us.models.</tt><tt class="descname">USStateField</tt><a class="headerlink" href="#django.contrib.localflavor.us.models.USStateField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.USStateField</span></tt> field and
stores the two-letter U.S. state abbreviation in the database.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.us.models.USPostalCodeField">
<em class="property">class </em><tt class="descclassname">us.models.</tt><tt class="descname">USPostalCodeField</tt><a class="headerlink" href="#django.contrib.localflavor.us.models.USPostalCodeField" title="Permalink to this definition">¶</a></dt>
<dd><p>A model field that forms represent as a <tt class="docutils literal"><span class="pre">forms.USPSSelect</span></tt> field
and stores the two-letter U.S Postal Service abbreviation in the
database.</p>
</dd></dl>

<p>Additionally, a variety of choice tuples are provided in
<tt class="docutils literal"><span class="pre">django.contrib.localflavor.us.us_states</span></tt>, allowing customized model
and form fields, and form presentations, for subsets of U.S states,
territories and U.S Postal Service abbreviations:</p>
<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.CONTIGUOUS_STATES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">CONTIGUOUS_STATES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.CONTIGUOUS_STATES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of the postal abbreviations for the
contiguous or &#8220;lower 48&#8221; states (i.e., all except Alaska and
Hawaii), plus the District of Columbia.</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.US_STATES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">US_STATES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.US_STATES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of the postal abbreviations for all
50 U.S. states, plus the District of Columbia.</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.US_TERRITORIES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">US_TERRITORIES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.US_TERRITORIES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of the postal abbreviations for U.S
territories: American Samoa, Guam, the Northern Mariana Islands,
Puerto Rico and the U.S. Virgin Islands.</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.ARMED_FORCES_STATES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">ARMED_FORCES_STATES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.ARMED_FORCES_STATES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of the postal abbreviations of the three U.S
military postal &#8220;states&#8221;: Armed Forces Americas, Armed Forces
Europe and Armed Forces Pacific.</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.COFA_STATES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">COFA_STATES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.COFA_STATES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of the postal abbreviations of the three
independent nations which, under the Compact of Free Association,
are served by the U.S. Postal Service: the Federated States of
Micronesia, the Marshall Islands and Palau.</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.OBSOLETE_STATES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">OBSOLETE_STATES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.OBSOLETE_STATES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of obsolete U.S Postal Service state
abbreviations: the former abbreviation for the Northern Mariana
Islands, plus the Panama Canal Zone, the Philippines and the
former Pacific trust territories.</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.STATE_CHOICES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">STATE_CHOICES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.STATE_CHOICES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of all postal abbreviations corresponding to U.S states or
territories, and the District of Columbia..</p>
</dd></dl>

<dl class="data">
<dt id="django.contrib.localflavor.us.us_states.USPS_CHOICES">
<tt class="descclassname">us.us_states.</tt><tt class="descname">USPS_CHOICES</tt><a class="headerlink" href="#django.contrib.localflavor.us.us_states.USPS_CHOICES" title="Permalink to this definition">¶</a></dt>
<dd><p>A tuple of choices of all postal abbreviations recognized by the
U.S Postal Service (including all states and territories, the
District of Columbia, armed forces &#8220;states&#8221; and independent
nations serviced by USPS).</p>
</dd></dl>

</div>
<div class="section" id="s-uruguay-uy">
<span id="uruguay-uy"></span><h2>Uruguay (<tt class="docutils literal"><span class="pre">uy</span></tt>)<a class="headerlink" href="#uruguay-uy" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="django.contrib.localflavor.uy.forms.UYCIField">
<em class="property">class </em><tt class="descclassname">uy.forms.</tt><tt class="descname">UYCIField</tt><a class="headerlink" href="#django.contrib.localflavor.uy.forms.UYCIField" title="Permalink to this definition">¶</a></dt>
<dd><p>A field that validates Uruguayan &#8216;Cedula de identidad&#8217; (CI) numbers.</p>
</dd></dl>

<dl class="class">
<dt id="django.contrib.localflavor.uy.forms.UYDepartamentSelect">
<em class="property">class </em><tt class="descclassname">uy.forms.</tt><tt class="descname">UYDepartamentSelect</tt><a class="headerlink" href="#django.contrib.localflavor.uy.forms.UYDepartamentSelect" title="Permalink to this definition">¶</a></dt>
<dd><p>A <tt class="docutils literal"><span class="pre">Select</span></tt> widget that uses a list of  Uruguayan departments as its
choices.</p>
</dd></dl>

</div>
</div>


          </div>         
        </div>
      </div>
      
        
          <div class="yui-b" id="sidebar">
            
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../../contents.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">The &#8220;local flavor&#8221; add-ons</a><ul>
<li><a class="reference internal" href="#supported-countries">Supported countries</a></li>
<li><a class="reference internal" href="#internationalization-of-localflavor">Internationalization of localflavor</a></li>
<li><a class="reference internal" href="#adding-flavors">Adding flavors</a></li>
<li><a class="reference internal" href="#localflavor-and-backwards-compatibility">Localflavor and backwards compatibility</a></li>
<li><a class="reference internal" href="#argentina-ar">Argentina (<tt class="docutils literal"><span class="pre">ar</span></tt>)</a></li>
<li><a class="reference internal" href="#australia-au">Australia (<tt class="docutils literal"><span class="pre">au</span></tt>)</a></li>
<li><a class="reference internal" href="#austria-at">Austria (<tt class="docutils literal"><span class="pre">at</span></tt>)</a></li>
<li><a class="reference internal" href="#belgium-be">Belgium (<tt class="docutils literal"><span class="pre">be</span></tt>)</a></li>
<li><a class="reference internal" href="#brazil-br">Brazil (<tt class="docutils literal"><span class="pre">br</span></tt>)</a></li>
<li><a class="reference internal" href="#canada-ca">Canada (<tt class="docutils literal"><span class="pre">ca</span></tt>)</a></li>
<li><a class="reference internal" href="#chile-cl">Chile (<tt class="docutils literal"><span class="pre">cl</span></tt>)</a></li>
<li><a class="reference internal" href="#china-cn">China (<tt class="docutils literal"><span class="pre">cn</span></tt>)</a></li>
<li><a class="reference internal" href="#colombia-co">Colombia (<tt class="docutils literal"><span class="pre">co</span></tt>)</a></li>
<li><a class="reference internal" href="#croatia-hr">Croatia (<tt class="docutils literal"><span class="pre">hr</span></tt>)</a></li>
<li><a class="reference internal" href="#czech-cz">Czech (<tt class="docutils literal"><span class="pre">cz</span></tt>)</a></li>
<li><a class="reference internal" href="#ecuador-ec">Ecuador (<tt class="docutils literal"><span class="pre">ec</span></tt>)</a></li>
<li><a class="reference internal" href="#finland-fi">Finland (<tt class="docutils literal"><span class="pre">fi</span></tt>)</a></li>
<li><a class="reference internal" href="#france-fr">France (<tt class="docutils literal"><span class="pre">fr</span></tt>)</a></li>
<li><a class="reference internal" href="#germany-de">Germany (<tt class="docutils literal"><span class="pre">de</span></tt>)</a></li>
<li><a class="reference internal" href="#the-netherlands-nl">The Netherlands (<tt class="docutils literal"><span class="pre">nl</span></tt>)</a></li>
<li><a class="reference internal" href="#iceland-is">Iceland (<tt class="docutils literal"><span class="pre">is_</span></tt>)</a></li>
<li><a class="reference internal" href="#india-in">India (<tt class="docutils literal"><span class="pre">in_</span></tt>)</a></li>
<li><a class="reference internal" href="#ireland-ie">Ireland (<tt class="docutils literal"><span class="pre">ie</span></tt>)</a></li>
<li><a class="reference internal" href="#indonesia-id">Indonesia (<tt class="docutils literal"><span class="pre">id</span></tt>)</a></li>
<li><a class="reference internal" href="#israel-il">Israel (<tt class="docutils literal"><span class="pre">il</span></tt>)</a></li>
<li><a class="reference internal" href="#italy-it">Italy (<tt class="docutils literal"><span class="pre">it</span></tt>)</a></li>
<li><a class="reference internal" href="#japan-jp">Japan (<tt class="docutils literal"><span class="pre">jp</span></tt>)</a></li>
<li><a class="reference internal" href="#kuwait-kw">Kuwait (<tt class="docutils literal"><span class="pre">kw</span></tt>)</a></li>
<li><a class="reference internal" href="#macedonia-mk">Macedonia (<tt class="docutils literal"><span class="pre">mk</span></tt>)</a></li>
<li><a class="reference internal" href="#mexico-mx">Mexico (<tt class="docutils literal"><span class="pre">mx</span></tt>)</a></li>
<li><a class="reference internal" href="#norway-no">Norway (<tt class="docutils literal"><span class="pre">no</span></tt>)</a></li>
<li><a class="reference internal" href="#paraguay-py">Paraguay (<tt class="docutils literal"><span class="pre">py</span></tt>)</a></li>
<li><a class="reference internal" href="#peru-pe">Peru (<tt class="docutils literal"><span class="pre">pe</span></tt>)</a></li>
<li><a class="reference internal" href="#poland-pl">Poland (<tt class="docutils literal"><span class="pre">pl</span></tt>)</a></li>
<li><a class="reference internal" href="#portugal-pt">Portugal (<tt class="docutils literal"><span class="pre">pt</span></tt>)</a></li>
<li><a class="reference internal" href="#romania-ro">Romania (<tt class="docutils literal"><span class="pre">ro</span></tt>)</a></li>
<li><a class="reference internal" href="#russia-ru">Russia (<tt class="docutils literal"><span class="pre">ru</span></tt>)</a></li>
<li><a class="reference internal" href="#slovakia-sk">Slovakia (<tt class="docutils literal"><span class="pre">sk</span></tt>)</a></li>
<li><a class="reference internal" href="#slovenia-si">Slovenia (<tt class="docutils literal"><span class="pre">si</span></tt>)</a></li>
<li><a class="reference internal" href="#south-africa-za">South Africa (<tt class="docutils literal"><span class="pre">za</span></tt>)</a></li>
<li><a class="reference internal" href="#spain-es">Spain (<tt class="docutils literal"><span class="pre">es</span></tt>)</a></li>
<li><a class="reference internal" href="#sweden-se">Sweden (<tt class="docutils literal"><span class="pre">se</span></tt>)</a></li>
<li><a class="reference internal" href="#switzerland-ch">Switzerland (<tt class="docutils literal"><span class="pre">ch</span></tt>)</a></li>
<li><a class="reference internal" href="#turkey-tr">Turkey (<tt class="docutils literal"><span class="pre">tr</span></tt>)</a></li>
<li><a class="reference internal" href="#united-kingdom-gb">United Kingdom (<tt class="docutils literal"><span class="pre">gb</span></tt>)</a></li>
<li><a class="reference internal" href="#united-states-of-america-us">United States of America (<tt class="docutils literal"><span class="pre">us</span></tt>)</a></li>
<li><a class="reference internal" href="#uruguay-uy">Uruguay (<tt class="docutils literal"><span class="pre">uy</span></tt>)</a></li>
</ul>
</li>
</ul>

  <h3>Browse</h3>
  <ul>
    
      <li>Prev: <a href="humanize.html">django.contrib.humanize</a></li>
    
    
      <li>Next: <a href="markup.html">django.contrib.markup</a></li>
    
  </ul>
  <h3>You are here:</h3>
  <ul>
      <li>
        <a href="../../index.html">Django 1.4.5 documentation</a>
        
          <ul><li><a href="../index.html">API Reference</a>
        
          <ul><li><a href="index.html"><tt class="docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal"><span class="pre">contrib</span></tt> packages</a>
        
        <ul><li>The &#8220;local flavor&#8221; add-ons</li></ul>
        </li></ul></li></ul>
      </li>
  </ul>  

  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../../_sources/ref/contrib/localflavor.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
              <h3>Last update:</h3>
              <p class="topless">Feb 21, 2013</p>
          </div> 
        
      
    </div>
    
    <div id="ft">
      <div class="nav">
    &laquo; <a href="humanize.html" title="django.contrib.humanize">previous</a> 
     |
    <a href="../index.html" title="API Reference" accesskey="U">up</a>
   |
    <a href="markup.html" title="django.contrib.markup">next</a> &raquo;</div>
    </div>
  </div>

      <div class="clearer"></div>
    </div>
  </body>
</html>