Greece (gr)

Forms

Greek-specific forms helpers.

class localflavor.gr.forms.GRPostalCodeField(*args, **kwargs)[source]

Greek Postal code field.

Format: XXXXX, where X is any digit, and first digit is not 0 or 9.

class localflavor.gr.forms.GRSocialSecurityNumberCodeField(allow_test_value=False, *args, **kwargs)[source]

Greek social security number (AMKA) field.

The allow_test_value option can be used to enable the usage of the non valid 00000000000 (11 zeros) value for testing and development

clean(value)[source]

Validate the given value and return its “cleaned” value as an appropriate Python object. Raise ValidationError for any errors.

class localflavor.gr.forms.GRTaxNumberCodeField(allow_test_value=False, *args, **kwargs)[source]

Greek tax number field.

The allow_test_value option can be used to enable the usage of the non valid 000000000 value for testing and development

clean(value)[source]

Validate the given value and return its “cleaned” value as an appropriate Python object. Raise ValidationError for any errors.