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', u'Aerodrom'), (u'AR', u'Ara\u010dinovo'), (u'BR', u'Berovo'), (u'TL', u'Bitola'), (u'BG', u'Bogdanci'), (u'VJ', u'Bogovinje'), (u'BS', u'Bosilovo'), (u'BN', u'Brvenica'), (u'BU', u'Butel'), (u'VA', u'Valandovo'), (u'VL', u'Vasilevo'), (u'VV', u'Vev\u010dani'), (u'VE', u'Veles'), (u'NI', u'Vinica'), (u'VC', u'Vrane\u0161tica'), (u'VH', u'Vrap\u010di\u0161te'), (u'GB', u'Gazi Baba'), (u'GV', u'Gevgelija'), (u'GT', u'Gostivar'), (u'GR', u'Gradsko'), (u'DB', u'Debar'), (u'DA', u'Debarca'), (u'DL', u'Del\u010devo'), (u'DK', u'Demir Kapija'), (u'DM', u'Demir Hisar'), (u'DE', u'Dolneni'), (u'DR', u'Drugovo'), (u'GP', u'Gjor\u010de Petrov'), (u'ZE', u'\u017delino'), (u'ZA', u'Zajas'), (u'ZK', u'Zelenikovo'), (u'ZR', u'Zrnovci'), (u'IL', u'Ilinden'), (u'JG', u'Jegunovce'), (u'AV', u'Kavadarci'), (u'KB', u'Karbinci'), (u'KX', u'Karpo\u0161'), (u'VD', u'Kisela Voda'), (u'KH', u'Ki\u010devo'), (u'KN', u'Kon\u010de'), (u'OC', u'Ko\u0107ani'), (u'KY', u'Kratovo'), (u'KZ', u'Kriva Palanka'), (u'KG', u'Krivoga\u0161tani'), (u'KS', u'Kru\u0161evo'), (u'UM', u'Kumanovo'), (u'LI', u'Lipkovo'), (u'LO', u'Lozovo'), (u'MR', u'Mavrovo i Rostu\u0161a'), (u'MK', u'Makedonska Kamenica'), (u'MD', u'Makedonski Brod'), (u'MG', u'Mogila'), (u'NG', u'Negotino'), (u'NV', u'Novaci'), (u'NS', u'Novo Selo'), (u'OS', u'Oslomej'), (u'OD', u'Ohrid'), (u'PE', u'Petrovec'), (u'PH', u'Peh\u010devo'), (u'PN', u'Plasnica'), (u'PP', u'Prilep'), (u'PT', u'Probi\u0161tip'), (u'RV', u'Radovi\u0161'), (u'RN', u'Rankovce'), (u'RE', u'Resen'), (u'RO', u'Rosoman'), (u'AJ', u'Saraj'), (u'SL', u'Sveti Nikole'), (u'SS', u'Sopi\u0161te'), (u'SD', u'Star Dojran'), (u'NA', u'Staro Nagori\u010dane'), (u'UG', u'Struga'), (u'RU', u'Strumica'), (u'SU', u'Studeni\u010dani'), (u'TR', u'Tearce'), (u'ET', u'Tetovo'), (u'CE', u'Centar'), (u'CZ', u'Centar-\u017dupa'), (u'CI', u'\u010cair'), (u'CA', u'\u010ca\u0161ka'), (u'CH', u'\u010ce\u0161inovo-Oble\u0161evo'), (u'CS', u'\u010cu\u010der-Sandevo'), (u'ST', u'\u0160tip'), (u'SO', u'\u0160uto Orizari'))¶ Macedonian municipalities per the reorganization from 2004.