Egypt (eg
)¶
Forms¶
Egypt-specific Form helpers.
- class localflavor.eg.forms.EGGovernorateSelect(attrs=None)[source]¶
A Select widget that uses a list of Egypt governorates as its choices.
Added in version 3.0.
- class localflavor.eg.forms.EGNationalIDNumberField(max_length=14, min_length=14, **kwargs)[source]¶
Egypt ID numbers are 14 digits, second to seventh digits represents the person’s birthdate.
- Checks the following rules to determine the validity of the number:
The number consist of 14 digits.
The century number is valid.
The birthdate of the person is a valid date.
The governorate code is valid.
Added in version 3.0.