mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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:
		| @@ -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``) | ||||
| ===================== | ||||
|  | ||||
|   | ||||
| @@ -235,6 +235,11 @@ filename. For example, the file ``css/styles.css`` would also be saved as | ||||
| See the :class:`~django.contrib.staticfiles.storage.CachedStaticFilesStorage` | ||||
| docs for more information. | ||||
|  | ||||
| Localflavor changes | ||||
| ~~~~~~~~~~~~~~~~~~~ | ||||
|  | ||||
|  * A Slovenian (si) localflavor was added. | ||||
|  | ||||
| Minor features | ||||
| ~~~~~~~~~~~~~~ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user