Macedonia (mk
)¶
Forms¶
-
class
localflavor.mk.forms.
MKIdentityCardNumberField
(*args, **kwargs)[source]¶ A Macedonian ID card number. Accepts both old and new format.
-
class
localflavor.mk.forms.
MKMunicipalitySelect
(attrs=None)[source]¶ A form
Select
widget that uses a list of Macedonian municipalities as choices. The label is the name of the municipality and the value is a 2 character code for the municipality.
-
class
localflavor.mk.forms.
UMCNField
(*args, **kwargs)[source]¶ A form field that validates input as a unique master citizen number.
The format of the unique master citizen number has been kept the same from Yugoslavia. It is still in use in other countries as well, it is not applicable solely in Macedonia. For more information see: https://secure.wikimedia.org/wikipedia/en/wiki/Unique_Master_Citizen_Number
A value will pass validation if it complies to the following rules:
- Consists of exactly 13 digits
- The first 7 digits represent a valid past date in the format DDMMYYY
- The last digit of the UMCN passes a checksum test
Models¶
-
class
localflavor.mk.models.
MKIdentityCardNumberField
(*args, **kwargs)[source]¶ A form field that validates input as a Macedonian identity card number. Both old and new identity card numbers are supported.
-
class
localflavor.mk.models.
MKMunicipalityField
(*args, **kwargs)[source]¶ A form field that validates input as a Macedonian identity card number. Both old and new identity card numbers are supported.
-
class
localflavor.mk.models.
UMCNField
(*args, **kwargs)[source]¶ A form field that validates input as a unique master citizen number.
The format of the unique master citizen number is not unique to Macedonia. For more information see: https://secure.wikimedia.org/wikipedia/en/wiki/Unique_Master_Citizen_Number
A value will pass validation if it complies to the following rules:
- Consists of exactly 13 digits
- The first 7 digits represent a valid past date in the format DDMMYYY
- The last digit of the UMCN passes a checksum test
Data¶
-
localflavor.mk.mk_choices.
MK_MUNICIPALITIES
= ((u'AD', <django.utils.functional.__proxy__ object at 0x7f9543aa22d0>), (u'AR', <django.utils.functional.__proxy__ object at 0x7f9543aa2310>), (u'BR', <django.utils.functional.__proxy__ object at 0x7f9543aa2350>), (u'TL', <django.utils.functional.__proxy__ object at 0x7f9543aa2390>), (u'BG', <django.utils.functional.__proxy__ object at 0x7f9543aa23d0>), (u'VJ', <django.utils.functional.__proxy__ object at 0x7f9543aa2410>), (u'BS', <django.utils.functional.__proxy__ object at 0x7f9543aa2450>), (u'BN', <django.utils.functional.__proxy__ object at 0x7f9543aa24d0>), (u'BU', <django.utils.functional.__proxy__ object at 0x7f9543aa2550>), (u'VA', <django.utils.functional.__proxy__ object at 0x7f9543aa25d0>), (u'VL', <django.utils.functional.__proxy__ object at 0x7f9543aa2650>), (u'VV', <django.utils.functional.__proxy__ object at 0x7f9543aa26d0>), (u'VE', <django.utils.functional.__proxy__ object at 0x7f9543aa2750>), (u'NI', <django.utils.functional.__proxy__ object at 0x7f9543aa27d0>), (u'VC', <django.utils.functional.__proxy__ object at 0x7f9543aa2850>), (u'VH', <django.utils.functional.__proxy__ object at 0x7f9543aa28d0>), (u'GB', <django.utils.functional.__proxy__ object at 0x7f9543aa2950>), (u'GV', <django.utils.functional.__proxy__ object at 0x7f9543aa29d0>), (u'GT', <django.utils.functional.__proxy__ object at 0x7f9543aa2a50>), (u'GR', <django.utils.functional.__proxy__ object at 0x7f9543aa2ad0>), (u'DB', <django.utils.functional.__proxy__ object at 0x7f9543aa2b50>), (u'DA', <django.utils.functional.__proxy__ object at 0x7f9543aa2bd0>), (u'DL', <django.utils.functional.__proxy__ object at 0x7f9543aa2c50>), (u'DK', <django.utils.functional.__proxy__ object at 0x7f9543aa2cd0>), (u'DM', <django.utils.functional.__proxy__ object at 0x7f9543aa2d50>), (u'DE', <django.utils.functional.__proxy__ object at 0x7f9543aa2dd0>), (u'DR', <django.utils.functional.__proxy__ object at 0x7f9543aa2e50>), (u'GP', <django.utils.functional.__proxy__ object at 0x7f9543aa2ed0>), (u'ZE', <django.utils.functional.__proxy__ object at 0x7f9543aa2f50>), (u'ZA', <django.utils.functional.__proxy__ object at 0x7f9543aa2fd0>), (u'ZK', <django.utils.functional.__proxy__ object at 0x7f9540b96090>), (u'ZR', <django.utils.functional.__proxy__ object at 0x7f9540b96110>), (u'IL', <django.utils.functional.__proxy__ object at 0x7f9540b96190>), (u'JG', <django.utils.functional.__proxy__ object at 0x7f9540b96210>), (u'AV', <django.utils.functional.__proxy__ object at 0x7f9540b96290>), (u'KB', <django.utils.functional.__proxy__ object at 0x7f9540b96310>), (u'KX', <django.utils.functional.__proxy__ object at 0x7f9540b96390>), (u'VD', <django.utils.functional.__proxy__ object at 0x7f9540b96410>), (u'KH', <django.utils.functional.__proxy__ object at 0x7f9540b96490>), (u'KN', <django.utils.functional.__proxy__ object at 0x7f9540b96510>), (u'OC', <django.utils.functional.__proxy__ object at 0x7f9540b96590>), (u'KY', <django.utils.functional.__proxy__ object at 0x7f9540b96610>), (u'KZ', <django.utils.functional.__proxy__ object at 0x7f9540b96690>), (u'KG', <django.utils.functional.__proxy__ object at 0x7f9540b96710>), (u'KS', <django.utils.functional.__proxy__ object at 0x7f9540b96790>), (u'UM', <django.utils.functional.__proxy__ object at 0x7f9540b96810>), (u'LI', <django.utils.functional.__proxy__ object at 0x7f9540b96890>), (u'LO', <django.utils.functional.__proxy__ object at 0x7f9540b96910>), (u'MR', <django.utils.functional.__proxy__ object at 0x7f9540b96990>), (u'MK', <django.utils.functional.__proxy__ object at 0x7f9540b96a10>), (u'MD', <django.utils.functional.__proxy__ object at 0x7f9540b96a90>), (u'MG', <django.utils.functional.__proxy__ object at 0x7f9540b96b10>), (u'NG', <django.utils.functional.__proxy__ object at 0x7f9540b96b90>), (u'NV', <django.utils.functional.__proxy__ object at 0x7f9540b96c10>), (u'NS', <django.utils.functional.__proxy__ object at 0x7f9540b96c90>), (u'OS', <django.utils.functional.__proxy__ object at 0x7f9540b96d10>), (u'OD', <django.utils.functional.__proxy__ object at 0x7f9540b96d90>), (u'PE', <django.utils.functional.__proxy__ object at 0x7f9540b96e10>), (u'PH', <django.utils.functional.__proxy__ object at 0x7f9540b96e90>), (u'PN', <django.utils.functional.__proxy__ object at 0x7f9540b96f10>), (u'PP', <django.utils.functional.__proxy__ object at 0x7f9540b96f90>), (u'PT', <django.utils.functional.__proxy__ object at 0x7f9540b9c050>), (u'RV', <django.utils.functional.__proxy__ object at 0x7f9540b9c0d0>), (u'RN', <django.utils.functional.__proxy__ object at 0x7f9540b9c150>), (u'RE', <django.utils.functional.__proxy__ object at 0x7f9540b9c1d0>), (u'RO', <django.utils.functional.__proxy__ object at 0x7f9540b9c250>), (u'AJ', <django.utils.functional.__proxy__ object at 0x7f9540b9c2d0>), (u'SL', <django.utils.functional.__proxy__ object at 0x7f9540b9c350>), (u'SS', <django.utils.functional.__proxy__ object at 0x7f9540b9c3d0>), (u'SD', <django.utils.functional.__proxy__ object at 0x7f9540b9c450>), (u'NA', <django.utils.functional.__proxy__ object at 0x7f9540b9c4d0>), (u'UG', <django.utils.functional.__proxy__ object at 0x7f9540b9c550>), (u'RU', <django.utils.functional.__proxy__ object at 0x7f9540b9c5d0>), (u'SU', <django.utils.functional.__proxy__ object at 0x7f9540b9c650>), (u'TR', <django.utils.functional.__proxy__ object at 0x7f9540b9c6d0>), (u'ET', <django.utils.functional.__proxy__ object at 0x7f9540b9c750>), (u'CE', <django.utils.functional.__proxy__ object at 0x7f9540b9c7d0>), (u'CZ', <django.utils.functional.__proxy__ object at 0x7f9540b9c850>), (u'CI', <django.utils.functional.__proxy__ object at 0x7f9540b9c8d0>), (u'CA', <django.utils.functional.__proxy__ object at 0x7f9540b9c950>), (u'CH', <django.utils.functional.__proxy__ object at 0x7f9540b9c9d0>), (u'CS', <django.utils.functional.__proxy__ object at 0x7f9540b9ca50>), (u'ST', <django.utils.functional.__proxy__ object at 0x7f9540b9cad0>), (u'SO', <django.utils.functional.__proxy__ object at 0x7f9540b9cb50>))¶ Macedonian municipalities per the reorganization from 2004.