= [http://code.djangoproject.com/browser/django/trunk/django/contrib/localflavor/pl django.contrib.localflavor.pl] = == `pl_regions.py` == The provinces/counties/communes (województwa/powiaty/gminy) lists should be updated from time to time - they are not constant. Fortunately, it can be automated. Polish [http://www.stat.gov.pl/gus/index_ENG_HTML.htm Central Statistical Office] ([http://www.stat.gov.pl/ Główny Urząd Statystyczny]) published an XML file with all necessary data needed to generate `pl_regions.py`: [http://www.stat.gov.pl/broker/access/prefile/downloadPreFile.jspa?id=68 `TERC.xml`]. There is Python script - [http://code.djangoproject.com/attachment/wiki/PolishLocalflavor/terc.py terc.py] which exctracts interesting data. == related stuff == - tickets * #8276: change fields' names in `django.contrib.localflavor.pl.forms` * #8273: reduce amount of redundant code in `django.contrib.localflavor` * #8197: add Polish administrative entites * #7741: move `django.newforms` to `django.forms` * #7023: improve validation and add extra attributes to `PLNationalIdentificationNumberField` * #5871: allow `error_messages` to be specified for form types in `localflavor.nl.forms` * #5200: Polish PL Localflavor - changesets * [7689] * [6926] * [6556] * [5940] * [5936] - files * http://code.djangoproject.com/browser/django/trunk/django/contrib/localflavor/pl