mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #16202 -- Added a Slovenian localflavor. Thanks to Jure Cuhalev <gandalf@owca.info>, Gasper Zejn, Domen Kozar and iElectric for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1e72b1c5c1
commit
43024142a1
8 changed files with 1224 additions and 0 deletions
|
@ -70,6 +70,7 @@ Countries currently supported by :mod:`~django.contrib.localflavor` are:
|
|||
* Romania_
|
||||
* Russia_
|
||||
* Slovakia_
|
||||
* Slovenia_
|
||||
* `South Africa`_
|
||||
* Spain_
|
||||
* Sweden_
|
||||
|
@ -126,6 +127,7 @@ Here's an example of how to use them::
|
|||
.. _Romania: `Romania (ro)`_
|
||||
.. _Russia: `Russia (ru)`_
|
||||
.. _Slovakia: `Slovakia (sk)`_
|
||||
.. _Slovenia: `Slovenia (si)`_
|
||||
.. _South Africa: `South Africa (za)`_
|
||||
.. _Spain: `Spain (es)`_
|
||||
.. _Sweden: `Sweden (se)`_
|
||||
|
@ -1068,6 +1070,35 @@ Slovakia (``sk``)
|
|||
|
||||
A ``Select`` widget that uses a list of Slovak regions as its choices.
|
||||
|
||||
Slovenia (``si``)
|
||||
=================
|
||||
|
||||
.. class:: si.forms.SIEMSOField
|
||||
|
||||
A form field that validates input as Slovenian personal identification
|
||||
number and stores gender and birthday to self.info dictionary.
|
||||
|
||||
.. class:: si.forms.SITaxNumberField
|
||||
|
||||
A form field that validates input as a Slovenian tax number. Valid input
|
||||
is SIXXXXXXXX or XXXXXXXX.
|
||||
|
||||
.. class:: si.forms.SIPhoneNumberField
|
||||
|
||||
A form field that validates input as a Slovenian phone number. Phone
|
||||
number must contain at least local area code with optional country code.
|
||||
|
||||
.. class:: si.forms.SIPostalCodeField
|
||||
|
||||
A form field that provides a choice field of major Slovenian postal
|
||||
codes.
|
||||
|
||||
.. class:: si.forms.SIPostalCodeSelect
|
||||
|
||||
A ``Select`` widget that uses a list of major Slovenian postal codes as
|
||||
its choices.
|
||||
|
||||
|
||||
South Africa (``za``)
|
||||
=====================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue