Greece (gr)

Forms

Greek-specific forms helpers.

class localflavor.gr.forms.GRMobilePhoneNumberField(required=True, widget=None, label=None, initial=None, help_text='', error_messages=None, show_hidden_initial=False, validators=(), localize=False, disabled=False, label_suffix=None)[source]

Greek mobile phone field.

10 digits starting with 69 (could also start with +30 which is the country-code for greece)

class localflavor.gr.forms.GRPhoneNumberField(required=True, widget=None, label=None, initial=None, help_text='', error_messages=None, show_hidden_initial=False, validators=(), localize=False, disabled=False, label_suffix=None)[source]

Greek general phone field.

10 digits (can also start with +30 which is the country-code for greece)

class localflavor.gr.forms.GRPostalCodeField(max_length=None, min_length=None, *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.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