Germany (de)¶
Forms¶
DE-specific Form helpers
-
class
localflavor.de.forms.DEIdentityCardNumberField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]¶ A German identity card number.
Checks the following rules to determine whether the number is valid:
- Conforms to the XXXXXXXXXXX-XXXXXXX-XXXXXXX-X format.
- No group consists entirely of zeroes.
- Included checksums match calculated checksums
Algorithm is documented at http://de.wikipedia.org/wiki/Personalausweis
Data¶
-
localflavor.de.de_states.STATE_CHOICES= (('BW', <django.utils.functional.__proxy__ object at 0x7f1e9d890250>), ('BY', <django.utils.functional.__proxy__ object at 0x7f1e9d890290>), ('BE', <django.utils.functional.__proxy__ object at 0x7f1e9d890110>), ('BB', <django.utils.functional.__proxy__ object at 0x7f1e9d8902d0>), ('HB', <django.utils.functional.__proxy__ object at 0x7f1e9d8903d0>), ('HH', <django.utils.functional.__proxy__ object at 0x7f1e9d890310>), ('HE', <django.utils.functional.__proxy__ object at 0x7f1e9d890390>), ('MV', <django.utils.functional.__proxy__ object at 0x7f1e9d890150>), ('NI', <django.utils.functional.__proxy__ object at 0x7f1e9d890050>), ('NW', <django.utils.functional.__proxy__ object at 0x7f1e9d890bd0>), ('RP', <django.utils.functional.__proxy__ object at 0x7f1e9d890c50>), ('SL', <django.utils.functional.__proxy__ object at 0x7f1e9d890cd0>), ('SN', <django.utils.functional.__proxy__ object at 0x7f1e9d890d50>), ('ST', <django.utils.functional.__proxy__ object at 0x7f1e9d890dd0>), ('SH', <django.utils.functional.__proxy__ object at 0x7f1e9d890e50>), ('TH', <django.utils.functional.__proxy__ object at 0x7f1e9d890ed0>))¶ An alphabetical list of states