Fixed #15713 -- Added a form field for validating Polish National ID Card numbers. Thanks, xtrqt.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-04-28 13:20:33 +00:00
parent 086ab44336
commit 07854d1c44
3 changed files with 88 additions and 8 deletions

View file

@ -759,6 +759,17 @@ Poland (``pl``)
.. _PESEL: http://en.wikipedia.org/wiki/PESEL
.. versionadded:: 1.4
.. class:: pl.forms.PLNationalIDCardNumberField
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 `Polish identity card`_.
.. _`Polish identity card`: http://en.wikipedia.org/wiki/Polish_identity_card
.. class:: pl.forms.PLREGONField
A form field that validates input as a Polish National Official Business