def has_valid_location(self, value):
        return int(value[:2]) in CN_LOCATION_CODES
This method checks if the first two digits in the ID Card are valid.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/localflavor/cn/forms.py/CNIDCardField.has_valid_location