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 0x7f1ea1d06c50>), (u'AR', <django.utils.functional.__proxy__ object at 0x7f1ea1d06c90>), (u'BR', <django.utils.functional.__proxy__ object at 0x7f1ea1d06cd0>), (u'TL', <django.utils.functional.__proxy__ object at 0x7f1ea1d06d10>), (u'BG', <django.utils.functional.__proxy__ object at 0x7f1ea1d06d50>), (u'VJ', <django.utils.functional.__proxy__ object at 0x7f1ea1d06d90>), (u'BS', <django.utils.functional.__proxy__ object at 0x7f1ea1d06dd0>), (u'BN', <django.utils.functional.__proxy__ object at 0x7f1ea1d06e50>), (u'BU', <django.utils.functional.__proxy__ object at 0x7f1ea1d06ed0>), (u'VA', <django.utils.functional.__proxy__ object at 0x7f1ea1d06f50>), (u'VL', <django.utils.functional.__proxy__ object at 0x7f1ea1d06fd0>), (u'VV', <django.utils.functional.__proxy__ object at 0x7f1ea1d19090>), (u'VE', <django.utils.functional.__proxy__ object at 0x7f1ea1d19110>), (u'NI', <django.utils.functional.__proxy__ object at 0x7f1ea1d19190>), (u'VC', <django.utils.functional.__proxy__ object at 0x7f1ea1d19210>), (u'VH', <django.utils.functional.__proxy__ object at 0x7f1ea1d19290>), (u'GB', <django.utils.functional.__proxy__ object at 0x7f1ea1d19310>), (u'GV', <django.utils.functional.__proxy__ object at 0x7f1ea1d19390>), (u'GT', <django.utils.functional.__proxy__ object at 0x7f1ea1d19410>), (u'GR', <django.utils.functional.__proxy__ object at 0x7f1ea1d19490>), (u'DB', <django.utils.functional.__proxy__ object at 0x7f1ea1d19510>), (u'DA', <django.utils.functional.__proxy__ object at 0x7f1ea1d19590>), (u'DL', <django.utils.functional.__proxy__ object at 0x7f1ea1d19610>), (u'DK', <django.utils.functional.__proxy__ object at 0x7f1ea1d19690>), (u'DM', <django.utils.functional.__proxy__ object at 0x7f1ea1d19710>), (u'DE', <django.utils.functional.__proxy__ object at 0x7f1ea1d19790>), (u'DR', <django.utils.functional.__proxy__ object at 0x7f1ea1d19810>), (u'GP', <django.utils.functional.__proxy__ object at 0x7f1ea1d19890>), (u'ZE', <django.utils.functional.__proxy__ object at 0x7f1ea1d19910>), (u'ZA', <django.utils.functional.__proxy__ object at 0x7f1ea1d19990>), (u'ZK', <django.utils.functional.__proxy__ object at 0x7f1ea1d19a10>), (u'ZR', <django.utils.functional.__proxy__ object at 0x7f1ea1d19a90>), (u'IL', <django.utils.functional.__proxy__ object at 0x7f1ea1d19b10>), (u'JG', <django.utils.functional.__proxy__ object at 0x7f1ea1d19b90>), (u'AV', <django.utils.functional.__proxy__ object at 0x7f1ea1d19c10>), (u'KB', <django.utils.functional.__proxy__ object at 0x7f1ea1d19c90>), (u'KX', <django.utils.functional.__proxy__ object at 0x7f1ea1d19d10>), (u'VD', <django.utils.functional.__proxy__ object at 0x7f1ea1d19d90>), (u'KH', <django.utils.functional.__proxy__ object at 0x7f1ea1d19e10>), (u'KN', <django.utils.functional.__proxy__ object at 0x7f1ea1d19e90>), (u'OC', <django.utils.functional.__proxy__ object at 0x7f1ea1d19f10>), (u'KY', <django.utils.functional.__proxy__ object at 0x7f1ea1d19f90>), (u'KZ', <django.utils.functional.__proxy__ object at 0x7f1e9ee04050>), (u'KG', <django.utils.functional.__proxy__ object at 0x7f1e9ee040d0>), (u'KS', <django.utils.functional.__proxy__ object at 0x7f1e9ee04150>), (u'UM', <django.utils.functional.__proxy__ object at 0x7f1e9ee041d0>), (u'LI', <django.utils.functional.__proxy__ object at 0x7f1e9ee04250>), (u'LO', <django.utils.functional.__proxy__ object at 0x7f1e9ee042d0>), (u'MR', <django.utils.functional.__proxy__ object at 0x7f1e9ee04350>), (u'MK', <django.utils.functional.__proxy__ object at 0x7f1e9ee043d0>), (u'MD', <django.utils.functional.__proxy__ object at 0x7f1e9ee04450>), (u'MG', <django.utils.functional.__proxy__ object at 0x7f1e9ee044d0>), (u'NG', <django.utils.functional.__proxy__ object at 0x7f1e9ee04550>), (u'NV', <django.utils.functional.__proxy__ object at 0x7f1e9ee045d0>), (u'NS', <django.utils.functional.__proxy__ object at 0x7f1e9ee04650>), (u'OS', <django.utils.functional.__proxy__ object at 0x7f1e9ee046d0>), (u'OD', <django.utils.functional.__proxy__ object at 0x7f1e9ee04750>), (u'PE', <django.utils.functional.__proxy__ object at 0x7f1e9ee047d0>), (u'PH', <django.utils.functional.__proxy__ object at 0x7f1e9ee04850>), (u'PN', <django.utils.functional.__proxy__ object at 0x7f1e9ee048d0>), (u'PP', <django.utils.functional.__proxy__ object at 0x7f1e9ee04950>), (u'PT', <django.utils.functional.__proxy__ object at 0x7f1e9ee049d0>), (u'RV', <django.utils.functional.__proxy__ object at 0x7f1e9ee04a50>), (u'RN', <django.utils.functional.__proxy__ object at 0x7f1e9ee04ad0>), (u'RE', <django.utils.functional.__proxy__ object at 0x7f1e9ee04b50>), (u'RO', <django.utils.functional.__proxy__ object at 0x7f1e9ee04bd0>), (u'AJ', <django.utils.functional.__proxy__ object at 0x7f1e9ee04c50>), (u'SL', <django.utils.functional.__proxy__ object at 0x7f1e9ee04cd0>), (u'SS', <django.utils.functional.__proxy__ object at 0x7f1e9ee04d50>), (u'SD', <django.utils.functional.__proxy__ object at 0x7f1e9ee04dd0>), (u'NA', <django.utils.functional.__proxy__ object at 0x7f1e9ee04e50>), (u'UG', <django.utils.functional.__proxy__ object at 0x7f1e9ee04ed0>), (u'RU', <django.utils.functional.__proxy__ object at 0x7f1e9ee04f50>), (u'SU', <django.utils.functional.__proxy__ object at 0x7f1e9ee04fd0>), (u'TR', <django.utils.functional.__proxy__ object at 0x7f1e9edea090>), (u'ET', <django.utils.functional.__proxy__ object at 0x7f1e9edea110>), (u'CE', <django.utils.functional.__proxy__ object at 0x7f1e9edea190>), (u'CZ', <django.utils.functional.__proxy__ object at 0x7f1e9edea210>), (u'CI', <django.utils.functional.__proxy__ object at 0x7f1e9edea290>), (u'CA', <django.utils.functional.__proxy__ object at 0x7f1e9edea310>), (u'CH', <django.utils.functional.__proxy__ object at 0x7f1e9edea390>), (u'CS', <django.utils.functional.__proxy__ object at 0x7f1e9edea410>), (u'ST', <django.utils.functional.__proxy__ object at 0x7f1e9edea490>), (u'SO', <django.utils.functional.__proxy__ object at 0x7f1e9edea510>))

Macedonian municipalities per the reorganization from 2004.